Skip to content

Commit 3225eb4

Browse files
committed
CI: Build sdist with setup.py; wheel from sdist with pip
1 parent 9dce170 commit 3225eb4

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.github/workflows/basemap-data-hires.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ jobs:
4949
name: Build wheel
5050
run: |
5151
cd ${{ env.PKGDIR }}
52-
python -m pip install build
53-
python -m build
52+
python setup.py sdist
53+
pip wheel -w dist/ --no-deps dist/*.zip
5454
-
5555
name: Upload build artifacts
5656
uses: actions/upload-artifact@v1

.github/workflows/basemap-data.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ jobs:
4949
name: Build wheel
5050
run: |
5151
cd ${{ env.PKGDIR }}
52-
python -m pip install build
53-
python -m build
52+
python setup.py sdist
53+
pip wheel -w dist --no-deps dist/*.zip
5454
-
5555
name: Upload build artifacts
5656
uses: actions/upload-artifact@v1

.github/workflows/basemap-for-manylinux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ jobs:
140140
export GEOS_DIR="${GITHUB_WORKSPACE}/${{ env.PKGDIR }}/extern"
141141
export NUMPY_INCLUDE_PATH="${GITHUB_WORKSPACE}/${{ env.PKGDIR }}/extern/include"
142142
export CFLAGS="-std=c99"
143-
pip install build
144143
pip install -r requirements-setup.txt
145-
python -m build
144+
python setup.py sdist
145+
pip wheel -w dist --no-deps dist/basemap*.zip
146146
-
147147
name: Upload build artifacts
148148
uses: actions/upload-artifact@v1

.github/workflows/basemap-for-windows.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
-
131131
name: Install Python base packages
132132
run: |
133-
python -m pip install --upgrade pip setuptools wheel build
133+
python -m pip install --upgrade pip setuptools wheel
134134
-
135135
name: Generate NumPy headers
136136
run: |
@@ -167,7 +167,8 @@ jobs:
167167
$env:GEOS_DIR = "$env:GITHUB_WORKSPACE/${{ env.PKGDIR }}/extern"
168168
$env:NUMPY_INCLUDE_PATH = "$env:GITHUB_WORKSPACE/${{ env.PKGDIR }}/extern/include"
169169
pip install -r requirements-setup.txt
170-
python setup.py sdist bdist_wheel
170+
python setup.py sdist
171+
pip wheel -w dist/ --no-deps dist/basemap*.zip
171172
-
172173
name: Upload build artifacts
173174
uses: actions/upload-artifact@v1

0 commit comments

Comments
 (0)