Skip to content

Commit b86db26

Browse files
committed
build data packages directly
1 parent 1d489e5 commit b86db26

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

.github/workflows/build.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,57 @@ jobs:
8686
name: basemap-sdist
8787
path: ./sdist/
8888

89+
- name: Download data packages
90+
uses: actions/download-artifact@v4
91+
with:
92+
pattern: dist-basemap_data*
93+
path: ./data_packages/
94+
merge-multiple: true
95+
96+
- name: Install data packages (Linux/macOS)
97+
if: runner.os != 'Windows'
98+
shell: bash
99+
run: |
100+
# Debug - show what we downloaded
101+
ls -la ./data_packages/
102+
103+
# Install the data packages
104+
python -m pip install ./data_packages/*.whl
105+
106+
# Verify they're installed
107+
python -c "import mpl_toolkits.basemap_data; print('Data package installed')"
108+
python -c "import mpl_toolkits.basemap_data_hires; print('Hires data package installed')" || echo "Optional hires package not installed"
109+
110+
# Install the data packages (Windows)
111+
- name: Install data packages (Windows)
112+
if: runner.os == 'Windows'
113+
shell: pwsh
114+
run: |
115+
# Debug - show what we downloaded
116+
Get-ChildItem -Path "./data_packages" -Recurse
117+
118+
# Find all wheel files
119+
$wheels = Get-ChildItem -Path "./data_packages" -Filter "*.whl" -Recurse
120+
121+
# Install each wheel file
122+
foreach ($wheel in $wheels) {
123+
Write-Host "Installing $($wheel.FullName)"
124+
python -m pip install $wheel.FullName
125+
}
126+
127+
# Verify they're installed
128+
try {
129+
python -c "import mpl_toolkits.basemap_data; print('Data package installed')"
130+
} catch {
131+
Write-Host "Error importing basemap_data"
132+
}
133+
134+
try {
135+
python -c "import mpl_toolkits.basemap_data_hires; print('Hires data package installed')"
136+
} catch {
137+
Write-Host "Optional hires package not installed"
138+
}
139+
89140
- name: Extract sdist (Linux/macOS)
90141
if: runner.os != 'Windows'
91142
shell: bash
@@ -148,6 +199,8 @@ jobs:
148199
PIP_PREFER_BINARY=1
149200
PYTHONUNBUFFERED=1
150201
LD_LIBRARY_PATH="${GEOS_DIR}/lib"
202+
# LD_LIBRARY_PATH in environment is needed by
203+
# auditwheel (Linux) and delocate (MacOS).
151204
with:
152205
package-dir: ${{ env.SDIST_DIR }} # Use extracted sdist
153206
output-dir: "dist"

0 commit comments

Comments
 (0)