Skip to content

Commit 042e1eb

Browse files
committed
Refactor pip calls and pip environment variables in new workflow
1 parent 55b9016 commit 042e1eb

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,12 @@ jobs:
3535

3636
- name: Install build dependencies
3737
run: |
38-
python -m pip install --upgrade pip
39-
pip install build wheel
38+
python -m pip install build wheel
4039
4140
- name: Build package
4241
run: |
4342
cd packages/${{ matrix.package }}
44-
python -m build --wheel --sdist
43+
python -m build --sdist --wheel
4544
4645
- uses: actions/upload-artifact@v4
4746
with:
@@ -66,10 +65,8 @@ jobs:
6665
environment: >-
6766
GEOS_DIR="/project/packages/basemap/extern"
6867
LD_LIBRARY_PATH="/project/packages/basemap/extern/lib"
69-
PIP_DEFAULT_TIMEOUT=10
7068
PIP_DISABLE_PIP_VERSION_CHECK=1
7169
PIP_PREFER_BINARY=1
72-
PIP_RETRIES=0
7370
PYTHONUNBUFFERED=1
7471
PYTHONWARNINGS="ignore:DEPRECATION"
7572
@@ -85,10 +82,8 @@ jobs:
8582
"
8683
environment: >-
8784
GEOS_DIR="D:/a/basemap/basemap/packages/basemap/extern"
88-
PIP_DEFAULT_TIMEOUT=10
8985
PIP_DISABLE_PIP_VERSION_CHECK=1
9086
PIP_PREFER_BINARY=1
91-
PIP_RETRIES=0
9287
PYTHONUNBUFFERED=1
9388
PYTHONWARNINGS="ignore:DEPRECATION"
9489
@@ -104,7 +99,7 @@ jobs:
10499
- name: Build SDist
105100
if: matrix.os == 'ubuntu-latest'
106101
run: |
107-
pip install build
102+
python -m pip install build
108103
mkdir -p wheelhouse
109104
cd packages/basemap
110105
python -m build --sdist

0 commit comments

Comments
 (0)