File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -161,20 +161,21 @@ jobs:
161161 3.10) pkgvers=1.21.4;;
162162 *) pkgvers=1.23.3;;
163163 esac
164- if [ "${pkgvers}" = "1.23.3" ]; then
165- # Dirty solution to get NumPy headers for Python 3.11.
164+ # Dirty solution to get NumPy headers for Python 3.11.
165+ if [ "${{ matrix.python-version }}" = " 3.11" ]; then
166166 case "${{ matrix.arch }}" in
167- x64) kwds="--plat=manylinux_2_17_x86_64" ;;
168- x86) kwds="--plat=manylinux_2_17_i686" ;;
167+ x64) kwds="--plat=manylinux_2_17_x86_64" ;;
168+ x86) kwds="--plat=manylinux_2_17_i686" ;;
169169 esac
170- pip download --no-deps ${kwds} "numpy==1.23.3 "
170+ pip download --no-deps ${kwds} "numpy==${pkgvers} "
171171 oldpkgfile=$(ls *.whl | head -n1)
172172 newpkgfile=$(echo "${oldpkgfile}" | sed 's/manylinux_2_17/linux/')
173173 mv "${oldpkgfile}" "${newpkgfile}"
174174 pip install "${newpkgfile}"
175175 rm "${newpkgfile}"
176+ else
177+ pip install "numpy == ${pkgvers}"
176178 fi
177- pip install "numpy == ${pkgvers}"
178179 -
179180 name : Build wheel
180181 run : |
You can’t perform that action at this time.
0 commit comments