summaryrefslogtreecommitdiff
path: root/.github/workflows/ci.yml
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2020-08-31 11:48:42 -0700
committerGitHub <noreply@github.com>2020-08-31 11:48:42 -0700
commit57a02fd0c7faa7a87b8619d52cf519e033633c1d (patch)
treeb167486559b67af386ab9e90378d6372cbe64c0c /.github/workflows/ci.yml
parentfc784f0273099b84581862b8587940c6db3459ed (diff)
[CI] Fix Cython installation (#4983)
Cython has been causing issues recently, see e.g. https://github.com/CVC4/CVC4/pull/4982/checks?check_run_id=1052433862. It looks like the issue is that globally installed packages can't be found by Python (maybe the global site-package directories changed/are not included in the search paths anymore?). This commit changes the installation of Cython to install it locally to the user instead of globally. It also adds `bin` in the user base directory to `PATH` s.t. CMake is able to find the `cython` binary.
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r--.github/workflows/ci.yml6
1 files changed, 3 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 00fa15bc5..d7909b961 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -90,12 +90,12 @@ jobs:
python3 -m pip install pexpect
echo "::add-path::/usr/local/opt/ccache/libexec"
- # Note: We install Cython with sudo since cmake can't find Cython otherwise.
- name: Install Cython
if: matrix.python-bindings && runner.os == 'Linux'
run: |
- sudo python3 -m pip install \
- Cython==0.29 --install-option="--no-cython-compile"
+ python3 -m pip install \
+ Cython==0.29.* --install-option="--no-cython-compile"
+ echo "::add-path::$(python3 -m site --user-base)/bin"
- name: Install Cython (macOS)
if: matrix.python-bindings && runner.os == 'macOS'
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback