From 13a9a9c3ddc8dbe1f68b4b1701a870b65af1d494 Mon Sep 17 00:00:00 2001 From: ikappaki Date: Tue, 5 Dec 2023 22:28:29 +0000 Subject: [PATCH] fix shared lib issue with pypy 3.9 & 3.10 --- .circleci/config.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6d184750..f1ecf4d9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -17,6 +17,19 @@ commands: apt-get update && apt-get install -y python3 python3-distutils curl pip install -U pip virtualenv pip install tox + + # All of a sudden, the venv generated by Poetry + # installations for pypy 3.9 and 3.10 (but not 3.8), + # located at /root/.local, lacks all the lib*.so + # dependencies from the original pypy environment. To + # address this issue, we ensure these libraries are + # explicitly accessible in the LD_LIBRARY_PATH until a + # resolution is implemented. + mkdir -p /root/.local/lib + ln -s /opt/pypy/lib/lib*.so.* /root/.local/lib + export LD_LIBRARY_PATH="/root/.local/lib:$LD_LIBRARY_PATH" + echo 'export LD_LIBRARY_PATH="/root/.local/lib:$LD_LIBRARY_PATH"' >> $BASH_ENV + curl -sSL https://install.python-poetry.org | python3 - echo 'export PATH="/root/.local/bin:$PATH"' >> $BASH_ENV - run: @@ -68,4 +81,4 @@ workflows: jobs: - test-pypy-38 - test-pypy-39 - - test-pypy-310 \ No newline at end of file + - test-pypy-310