|
29 | 29 |
|
30 | 30 | steps:
|
31 | 31 | - uses: actions/checkout@v4
|
32 |
| - |
33 |
| - - name: Install GEOS (Linux) |
34 |
| - if: runner.os == 'Linux' |
35 |
| - run: | |
36 |
| - sudo apt-get update |
37 |
| - sudo apt-get install -y software-properties-common |
38 |
| - sudo add-apt-repository ppa:ubuntugis/ppa |
39 |
| - sudo apt-get update |
40 |
| - sudo apt-get install -y libgeos-dev |
41 |
| -
|
42 |
| - - name: Install GEOS (Windows) |
43 |
| - if: runner.os == 'Windows' |
44 |
| - shell: bash |
45 |
| - run: | |
46 |
| - wget https://download.osgeo.org/geos/geos-${GEOS_VERSION}.tar.bz2 |
47 |
| - tar xjf geos-${GEOS_VERSION}.tar.bz2 |
48 |
| - cd geos-${GEOS_VERSION} |
49 |
| - mkdir build |
50 |
| - cd build |
51 |
| - cmake -DCMAKE_INSTALL_PREFIX=$GITHUB_WORKSPACE/geos-install .. |
52 |
| - cmake --build . --config Release --target install |
53 |
| - echo "GEOS_DIR=$GITHUB_WORKSPACE/geos-install" >> $GITHUB_ENV |
54 |
| -
|
55 |
| - - name: Install GEOS (macOS) |
56 |
| - if: runner.os == 'macOS' |
57 |
| - run: | |
58 |
| - brew install geos |
59 |
| -
|
60 | 32 | - name: Set up Python
|
61 | 33 | uses: actions/setup-python@v4
|
62 | 34 | with:
|
|
69 | 41 | env:
|
70 | 42 | CIBW_SKIP: "pp* *-musllinux*"
|
71 | 43 | CIBW_BEFORE_BUILD: >
|
72 |
| - pip install --upgrade pip && |
73 |
| - pip install numpy>=1.21.4 cython>=0.29.21 |
| 44 | + pip install --upgrade pip |
| 45 | + pip install numpy cython |
| 46 | + python -c "import utils; utils.GeosLibrary('3.6.5').build('extern', njobs=16)" |
74 | 47 | CIBW_ENVIRONMENT_WINDOWS: >
|
75 | 48 | GEOS_DIR=${{ env.GEOS_DIR }}
|
76 | 49 | SETUPTOOLS_USE_DISTUTILS=stdlib
|
|
0 commit comments