Skip to content

Commit 0637930

Browse files
committed
Refactor Py311 special blocks in basemap-for-manylinux
1 parent 3b83cd3 commit 0637930

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/basemap-for-manylinux.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff 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: |

0 commit comments

Comments
 (0)