Skip to content

Commit 153d278

Browse files
committed
fix: numpy 1.20 has dropped Python 3.6
1 parent 94f964c commit 153d278

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ jobs:
142142
source /tmp/setup_install/bin/activate
143143
python -m pip install -U "setuptools ~= 42.0" wheel "setuptools_scm[toml] >= 3.4" \
144144
setuptools_scm_git_archive "${{ matrix.pip }}"
145+
if [ "${{ matrix.python-version }}" == "3.6" ]; then
146+
pip install "numpy < 1.20"
147+
fi
145148
python setup.py install
146149
INSTALLED_VERSION=$(python -c 'import templateflow as tf; print(tf.__version__, end="")')
147150
echo "INSTALLED: \"${INSTALLED_VERSION}\""
@@ -174,6 +177,9 @@ jobs:
174177
source /tmp/setup_develop/bin/activate
175178
python -m pip install -U "setuptools ~= 42.0" wheel "setuptools_scm[toml] >= 3.4" \
176179
setuptools_scm_git_archive "${{ matrix.pip }}"
180+
if [ "${{ matrix.python-version }}" == "3.6" ]; then
181+
pip install "numpy < 1.20"
182+
fi
177183
python setup.py develop
178184
INSTALLED_VERSION=$(python -c 'import templateflow as tf; print(tf.__version__, end="")')
179185
echo "INSTALLED: \"${INSTALLED_VERSION}\""

0 commit comments

Comments
 (0)