Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ac56f5

Browse files
committed
Set --prefer-binary in actions using environment variable
1 parent c75d5da commit 5ac56f5

File tree

4 files changed

+20
-16
lines changed

4 files changed

+20
-16
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ env:
44
PKGDIR: "packages/basemap_data_hires"
55
PYTHONWARNINGS: "ignore:DEPRECATION"
66
PIP_DISABLE_PIP_VERSION_CHECK: 1
7+
PIP_PREFER_BINARY: 1
78
PIP_TIMEOUT: 10
89
PIP_RETRIES: 0
910

@@ -114,9 +115,9 @@ jobs:
114115
name: artifacts-build
115116
path: ${{ env.PKGDIR }}/dist
116117
-
117-
name: Install requirements
118+
name: Install upload requirements
118119
run: |
119-
pip install --prefer-binary twine
120+
pip install twine
120121
-
121122
name: Upload distributables
122123
env:

.github/workflows/basemap-data.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ env:
44
PKGDIR: "packages/basemap_data"
55
PYTHONWARNINGS: "ignore:DEPRECATION"
66
PIP_DISABLE_PIP_VERSION_CHECK: 1
7+
PIP_PREFER_BINARY: 1
78
PIP_TIMEOUT: 10
89
PIP_RETRIES: 0
910

@@ -114,9 +115,9 @@ jobs:
114115
name: artifacts-build
115116
path: ${{ env.PKGDIR }}/dist
116117
-
117-
name: Install requirements
118+
name: Install upload requirements
118119
run: |
119-
pip install --prefer-binary twine
120+
pip install twine
120121
-
121122
name: Upload distributables
122123
env:

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ env:
44
PKGDIR: "packages/basemap"
55
PYTHONWARNINGS: "ignore:DEPRECATION"
66
PIP_DISABLE_PIP_VERSION_CHECK: 1
7+
PIP_PREFER_BINARY: 1
78
PIP_TIMEOUT: 10
89
PIP_RETRIES: 0
910

@@ -59,7 +60,7 @@ jobs:
5960
name: Install library requirements
6061
run: |
6162
cd ${{ env.PKGDIR }}
62-
pip install --prefer-binary -r requirements.txt
63+
pip install -r requirements.txt
6364
-
6465
name: Run Flake8
6566
run: |
@@ -278,7 +279,7 @@ jobs:
278279
-
279280
name: Install package
280281
run: |
281-
pip install --prefer-binary ${{ env.PKGDIR }}/dist/*-manylinux1*.whl
282+
pip install ${{ env.PKGDIR }}/dist/*-manylinux1*.whl
282283
-
283284
name: Test package
284285
run: |
@@ -306,9 +307,9 @@ jobs:
306307
name: artifacts-build-${{ matrix.arch }}-${{ matrix.python-version }}
307308
path: ${{ env.PKGDIR }}/dist
308309
-
309-
name: Install requirements
310+
name: Install upload requirements
310311
run: |
311-
pip install --prefer-binary twine
312+
pip install twine
312313
-
313314
name: Upload distributables
314315
env:

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

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ env:
44
PKGDIR: "packages/basemap"
55
PYTHONWARNINGS: "ignore:DEPRECATION"
66
PIP_DISABLE_PIP_VERSION_CHECK: 1
7+
PIP_PREFER_BINARY: 1
78
PIP_TIMEOUT: 10
89
PIP_RETRIES: 0
910

@@ -58,17 +59,17 @@ jobs:
5859
-
5960
name: Set Python base packages
6061
run: |
61-
python -m pip install --upgrade pip setuptools wheel
62+
pip install --upgrade pip setuptools wheel
6263
-
6364
name: Install lint requirements
6465
run: |
6566
cd ${{ env.PKGDIR }}
66-
python -m pip install -r requirements-lint.txt
67+
pip install -r requirements-lint.txt
6768
-
6869
name: Install library requirements
6970
run: |
7071
cd ${{ env.PKGDIR }}
71-
pip install --prefer-binary -r requirements.txt
72+
pip install -r requirements.txt
7273
-
7374
name: Run Flake8
7475
run: |
@@ -174,7 +175,7 @@ jobs:
174175
-
175176
name: Set Python base packages
176177
run: |
177-
python -m pip install --upgrade pip setuptools wheel
178+
pip install --upgrade pip setuptools wheel
178179
-
179180
name: Build old numpy from source
180181
run: |
@@ -185,7 +186,7 @@ jobs:
185186
default { Set-Variable -Name "pkgvers" -Value "1.23.3" }
186187
}
187188
$env:SETUPTOOLS_USE_DISTUTILS = "stdlib"
188-
python -m pip install "numpy == ${pkgvers}"
189+
pip install "numpy == ${pkgvers}"
189190
-
190191
name: Download GEOS artifacts
191192
uses: actions/download-artifact@v1
@@ -234,7 +235,7 @@ jobs:
234235
-
235236
name: Install package
236237
run: |
237-
pip install --prefer-binary (Get-Item ${{ env.PKGDIR }}/dist/*-win*.whl)
238+
pip install (Get-Item ${{ env.PKGDIR }}/dist/*-win*.whl)
238239
# We need to skip Py311 x86 because of missing pyproj wheels.
239240
if: matrix.arch != 'x86' || matrix.python-version != '3.11'
240241
-
@@ -271,9 +272,9 @@ jobs:
271272
name: artifacts-build-${{ matrix.arch }}-${{ matrix.python-version }}
272273
path: ${{ env.PKGDIR }}/dist
273274
-
274-
name: Install requirements
275+
name: Install upload requirements
275276
run: |
276-
pip install --prefer-binary twine
277+
pip install twine
277278
-
278279
name: Upload distributables
279280
env:

0 commit comments

Comments
 (0)