Skip to content

Commit 4396163

Browse files
committed
fix: address problems with Python 3.6
1 parent aba2876 commit 4396163

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@ jobs:
7979
python -m venv /tmp/setup_develop
8080
source /tmp/setup_develop/bin/activate
8181
python -m pip install "${{ matrix.pip }}" "${{ matrix.setuptools }}"
82-
python -m pip install numpy scipy "Cython >= 0.28.5" # sklearn needs this
82+
# sklearn needs these dependencies
83+
if [ "${{ matrix.python-version }}" == "3.6" ]; then
84+
python -m pip install "numpy < 1.20" scipy "Cython >= 0.28.5" # numpy 1.20 drops Py3.6
85+
else
86+
python -m pip install numpy scipy "Cython >= 0.28.5"
87+
fi
8388
python -m pip install scikit-learn # otherwise it attempts to build it
8489
python setup.py develop
8590
INSTALLED_VERSION=$(python -c 'import dmriprep; print(dmriprep.__version__, end="")')

0 commit comments

Comments
 (0)