@@ -91,36 +91,24 @@ jobs:
9191 if : runner.os != 'Windows'
9292 shell : bash
9393 run : |
94- # Debug - show what we downloaded
95- ls -la ./data_packages/
96-
97- # Install the data packages
94+ # Install the wheel data packages with wildcard
9895 python -m pip install ./data_packages/*.whl
9996
100- # Verify they're installed
97+ # Verify that the data packages can be imported
10198 python -c "import mpl_toolkits.basemap_data; print('mpl_toolkits.basemap_data installed successfully')"
10299
103100 - name : Install data packages (Windows)
104101 if : runner.os == 'Windows'
105102 shell : pwsh
106103 run : |
107- # Debug - show what we downloaded
108- Get-ChildItem -Path "./data_packages" -Recurse
109-
110- # Find all wheel files
104+ # Install the wheel data packages sequentially
111105 $wheels = Get-ChildItem -Path "./data_packages" -Filter "*.whl" -Recurse
112-
113- # Install each wheel file
114106 foreach ($wheel in $wheels) {
115107 Write-Host "Installing $($wheel.FullName)"
116108 python -m pip install $wheel.FullName
117109 }
118110
119- # Show installed packages
120- python -m pip list | Select-String "mpl_toolkits.basemap"
121-
122- # Try different import paths
123- Write-Host "Trying to import basemap_data..."
111+ # Verify that the data packages can be imported
124112 python -c "import mpl_toolkits.basemap_data; print('mpl_toolkits.basemap_data installed successfully')"
125113
126114 - name : Download basemap sdist
@@ -136,44 +124,38 @@ jobs:
136124 # Create extraction directory in the workspace
137125 mkdir -p ./sdist_extract
138126
139- # Extract using tar (Unix-style)
127+ # Extract with tar using wildcard
140128 tar -xvf ./sdist/*.tar.gz -C ./sdist_extract
141129
142130 # Get the extracted directory name
143131 EXTRACTED_DIR="$(ls -d ./sdist_extract/*/ | head -1)"
144- echo "SDIST_DIR=$(pwd)/${EXTRACTED_DIR}" >> $GITHUB_ENV
145132
146133 # Verify contents
147134 ls -la "${EXTRACTED_DIR}"
148135
136+ # Set the environment variable
137+ echo "SDIST_DIR=$(pwd)/${EXTRACTED_DIR}" >> $GITHUB_ENV
138+
149139 - name : Extract sdist (Windows)
150140 if : runner.os == 'Windows'
151141 shell : pwsh
152142 run : |
153- # Create extraction directory
143+ # Create extraction directory in the workspace
154144 New-Item -ItemType Directory -Force -Path "sdist_extract"
155145
156- # Find the tarball file (without using wildcards )
146+ # Extract with tar using the specific file path (no wildcard )
157147 $tarball = Get-ChildItem -Path "sdist" -Filter "*.tar.gz" | Select-Object -First 1
158-
159- # Debug - show what we found
160- Write-Host "Found tarball: $($tarball.FullName)"
161-
162- # Extract using the specific file path (not wildcard)
163148 tar -xvf $tarball.FullName -C "sdist_extract"
164149
165150 # Get the extracted directory name
166151 $extractedDir = (Get-ChildItem -Path "sdist_extract" -Directory | Select-Object -First 1).FullName
167152
168- # Debug - show what we found
169- Write-Host "Extracted directory: $extractedDir"
153+ # Verify contents
154+ Get-ChildItem " $extractedDir"
170155
171156 # Set the environment variable
172157 echo "SDIST_DIR=$extractedDir" | Out-File -FilePath $env:GITHUB_ENV -Append
173158
174- # Verify contents
175- Get-ChildItem "$extractedDir"
176-
177159 - name : Build wheels from sdist
178160 uses : pypa/cibuildwheel@v2.22.0
179161 env :
0 commit comments