Skip to content

Commit bbd030d

Browse files
committed
pin numpy for python < 3.8
1 parent 5cfcd5e commit bbd030d

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/build-wheels.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,22 @@ jobs:
8686
run: |
8787
echo "DOCKER_TEST_IMAGE=$(echo multibuild/xenial_arm64v8)" >> $GITHUB_ENV
8888
89+
- name: Pin Numpy version
90+
run: |
91+
if [ "$MB_PYTHON_VERSION" == '3.6' ]; then
92+
echo "NP_DEP=$(echo numpy==1.17.3)" >> $GITHUB_ENV;
93+
elif [ "$MB_PYTHON_VERSION" == '3.7' ]; then
94+
echo "NP_DEP=$(echo numpy==1.17.3)" >> $GITHUB_ENV;
95+
elif [ "$MB_PYTHON_VERSION" == '3.8' ]; then
96+
echo "NP_DEP=$(echo oldest-supported-numpy)" >> $GITHUB_ENV;
97+
elif [ "$MB_PYTHON_VERSION" == '3.9' ]; then
98+
echo "NP_DEP=$(echo oldest-supported-numpy)" >> $GITHUB_ENV;
99+
elif [ "$MB_PYTHON_VERSION" == '3.10' ]; then
100+
echo "NP_DEP=$(echo oldest-supported-numpy)" >> $GITHUB_ENV;
101+
else
102+
echo "None of the defined python version, use default"
103+
fi
104+
89105
- name: Print some Environment variable
90106
run: |
91107
echo "TRAVIS_BRANCH: ${TRAVIS_BRANCH}"
@@ -102,8 +118,8 @@ jobs:
102118
pip install virtualenv
103119
- name: Build and Install Wheels
104120
run: |
105-
BUILD_DEPENDS="oldest-supported-numpy cython setuptools"
106-
TEST_DEPENDS="oldest-supported-numpy nose cython"
121+
BUILD_DEPENDS="$NP_DEP cython setuptools"
122+
TEST_DEPENDS="$NP_DEP nose cython"
107123
source multibuild/common_utils.sh
108124
source multibuild/travis_steps.sh
109125
echo "------- BEFORE INSTALL --------"

0 commit comments

Comments
 (0)