Skip to content

Commit 1e436ef

Browse files
committed
Fix NumPy version setup in basemap-for-windows
1 parent 708b525 commit 1e436ef

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,15 +134,18 @@ jobs:
134134
-
135135
name: Generate NumPy headers
136136
run: |
137-
if ("${{ matrix.python-version }}" -lt "3.5") {
137+
if ("${{ matrix.python-version }}" -In "2.6", "3.2", "3.3") {
138138
Set-Variable -Name "pkgvers" -Value "1.11.3"
139-
} else {
139+
} elseif ("${{ matrix.python-version }}" -In "2.7", "3.4", "3.5", "3.6") {
140140
Set-Variable -Name "pkgvers" -Value "1.16.6"
141+
} else {
142+
Set-Variable -Name "pkgvers" -Value "1.21.5"
141143
}
142144
Set-Variable -Name "pkgname" -Value "numpy"
143145
Set-Variable -Name "pkgcode" -Value "numpy-${pkgvers}"
144146
Set-Variable -Name "includedir" -Value "numpy/core/include"
145-
python -m pip download --no-binary=:all: "numpy == ${pkgvers}"
147+
python -m pip install cython
148+
python -m pip download --no-binary=numpy "numpy == ${pkgvers}"
146149
tar -xf "${pkgcode}.zip"
147150
rm "${pkgcode}.zip"
148151
cd "${pkgcode}"

0 commit comments

Comments
 (0)