Skip to content

Commit 8e85717

Browse files
committed
Simplify cibuildwheel before_all block for Windows
1 parent f78a4b7 commit 8e85717

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/build.yml

+2-4
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,11 @@ jobs:
6565
before_all: >-
6666
pwsh -Command "
6767
Write-Host 'Starting BEFORE_ALL script';
68-
$pwd = Get-Location;
69-
Write-Host 'Current directory:' $pwd;
7068
Set-Location '{package}';
71-
$env:GEOS_DIR = '{package}/extern';
72-
python -c 'import sys, os; sys.path.append(\"utils\"); from GeosLibrary import GeosLibrary; GeosLibrary(\"3.6.5\").build(\"extern\", njobs=16)'
69+
python -c 'import utils; utils.GeosLibrary(\"${env:GEOS_VERSION}\").build(\"${env:GEOS_DIR}\", njobs=2)'
7370
"
7471
environment: >-
72+
GEOS_VERSION="3.6.5"
7573
GEOS_DIR="D:/a/basemap/basemap/packages/basemap/extern"
7674
PIP_PREFER_BINARY=1
7775
PYTHONUNBUFFERED=1

0 commit comments

Comments
 (0)