From 4701dcf993217e807757ea4a2ea3b038b18c2c0e Mon Sep 17 00:00:00 2001 From: Navaneet Villodi <11260095+nauaneed@users.noreply.github.com> Date: Wed, 29 Nov 2023 00:48:00 +0530 Subject: [PATCH] ci(gha): install cython, numpy bfore build cyarray 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. So, cython and numpy are installed before. Also installing cyarray/master, not from pypi --- .github/workflows/tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 760e362..74219bf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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