|
86 | 86 | name: basemap-sdist
|
87 | 87 | path: ./sdist/
|
88 | 88 |
|
| 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 | +
|
89 | 140 | - name: Extract sdist (Linux/macOS)
|
90 | 141 | if: runner.os != 'Windows'
|
91 | 142 | shell: bash
|
@@ -148,6 +199,8 @@ jobs:
|
148 | 199 | PIP_PREFER_BINARY=1
|
149 | 200 | PYTHONUNBUFFERED=1
|
150 | 201 | LD_LIBRARY_PATH="${GEOS_DIR}/lib"
|
| 202 | + # LD_LIBRARY_PATH in environment is needed by |
| 203 | + # auditwheel (Linux) and delocate (MacOS). |
151 | 204 | with:
|
152 | 205 | package-dir: ${{ env.SDIST_DIR }} # Use extracted sdist
|
153 | 206 | output-dir: "dist"
|
|
0 commit comments