Skip to content

Commit 66535ac

Browse files
committed
Fix basemap-for-manylinux workflow build step
After changing the numpy download from GitHub to PyPI, we start getting a zip instead of a tar file.
1 parent 4121440 commit 66535ac

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

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

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ jobs:
103103
. /etc/profile
104104
apt-get update
105105
apt-get install -y gcc g++ make
106+
-
107+
name: Install unzip
108+
run: |
109+
set -e
110+
. /etc/profile
111+
apt-get update
112+
apt-get install -y unzip
106113
-
107114
name: Generate NumPy headers
108115
run: |
@@ -115,8 +122,8 @@ jobs:
115122
pkgname=numpy
116123
pkgcode=numpy-${pkgvers}
117124
python -m pip download --no-binary=:all: "numpy == ${pkgvers}"
118-
tar -xf ${pkgcode}.tar.gz
119-
rm -f ${pkgcode}.tar.gz
125+
unzip ${pkgcode}.zip
126+
rm -f ${pkgcode}.zip
120127
cd ${pkgcode}
121128
python setup.py build
122129
cp build/src*/numpy/core/include/numpy/*.h numpy/core/include/numpy/

0 commit comments

Comments
 (0)