Skip to content

Commit

Permalink
ci(gha): install cython, numpy bfore build cyarray
Browse files Browse the repository at this point in the history
Since cyarray contains cython and numpy as build requirements in
pyproject.toml, pip should install cython and numpy install before
cyarray. See https://stackoverflow.com/a/54138355

However, it seems like this does not happen and the numpy import in
cyarray's setup.py fails with ModuleNotFoundError.
  • Loading branch information
nauaneed committed Nov 28, 2023
1 parent 8b3713e commit b2a844f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
python -m pip install --upgrade pip setuptools wheel
python -m pip install numpy 'cython<3.0'
python -m pip install -r requirements.txt
python setup.py develop
- name: Run tests
Expand Down

0 comments on commit b2a844f

Please sign in to comment.