Skip to content

Commit 075e1a7

Browse files
committed
fix pre-build
1 parent c0087d1 commit 075e1a7

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,22 @@ jobs:
4343
- name: Build wheels
4444
env:
4545
CIBW_SKIP: "pp* *-musllinux*" # Skip PyPy and musllinux
46+
CIBW_BEFORE_ALL: >
47+
yum install -y geos-devel ||
48+
apt-get update && apt-get install -y libgeos-dev ||
49+
brew install geos
4650
CIBW_BEFORE_BUILD: >
47-
pip install numpy cython &&
51+
pip install --upgrade pip &&
52+
pip install numpy>=1.21.4 cython>=0.29.21 &&
4853
python -c "import utils; utils.GeosLibrary('3.6.5').build('extern', njobs=16)"
49-
CIBW_BEFORE_TEST: "pip install -r {project}/requirements-test.txt"
54+
CIBW_ENVIRONMENT: >
55+
GEOS_DIR=/project/packages/basemap/extern
56+
SETUPTOOLS_USE_DISTUTILS=stdlib
5057
CIBW_TEST_COMMAND: >
5158
cd {project} && python -m pytest --cov="mpl_toolkits.basemap"
5259
--cov-report=term --ignore=dist --ignore=build
53-
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-* cp313-*"
54-
CIBW_ENVIRONMENT: "GEOS_DIR={project}/extern"
60+
CIBW_BUILD: "cp39-* cp310-* cp311-* cp312-*"
61+
5562
run: |
5663
cd ${{ env.PKGDIR }}
5764
python -m cibuildwheel --output-dir wheelhouse

0 commit comments

Comments
 (0)