Skip to content

Commit 808ec0b

Browse files
committed
use python script to install geos
1 parent 19ad51b commit 808ec0b

File tree

1 file changed

+3
-30
lines changed

1 file changed

+3
-30
lines changed

Diff for: .github/workflows/build.yml

+3-30
Original file line numberDiff line numberDiff line change
@@ -29,34 +29,6 @@ jobs:
2929

3030
steps:
3131
- 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-
6032
- name: Set up Python
6133
uses: actions/setup-python@v4
6234
with:
@@ -69,8 +41,9 @@ jobs:
6941
env:
7042
CIBW_SKIP: "pp* *-musllinux*"
7143
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)"
7447
CIBW_ENVIRONMENT_WINDOWS: >
7548
GEOS_DIR=${{ env.GEOS_DIR }}
7649
SETUPTOOLS_USE_DISTUTILS=stdlib

0 commit comments

Comments
 (0)