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:
161
161
3.10) pkgvers=1.21.4;;
162
162
*) pkgvers=1.23.3;;
163
163
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
166
166
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" ;;
169
169
esac
170
- pip download --no-deps ${kwds} "numpy==1.23.3 "
170
+ pip download --no-deps ${kwds} "numpy==${pkgvers} "
171
171
oldpkgfile=$(ls *.whl | head -n1)
172
172
newpkgfile=$(echo "${oldpkgfile}" | sed 's/manylinux_2_17/linux/')
173
173
mv "${oldpkgfile}" "${newpkgfile}"
174
174
pip install "${newpkgfile}"
175
175
rm "${newpkgfile}"
176
+ else
177
+ pip install "numpy == ${pkgvers}"
176
178
fi
177
- pip install "numpy == ${pkgvers}"
178
179
-
179
180
name : Build wheel
180
181
run : |
You can’t perform that action at this time.
0 commit comments