Skip to content

Commit 4850764

Browse files
committed
Set pip to prefer binary wheels.
1 parent 0d3d0ec commit 4850764

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

.github/workflows/python_ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
python -m site
6868
python -m pip install --upgrade pip setuptools wheel
6969
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
70+
pip config set global.prefer-binary true
7071
7172
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
7273
if: steps.setup-python.outcome == 'success'

.github/workflows/python_ci_linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
python -m pip install --upgrade pip setuptools wheel
7070
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
7171
python -m pip install --upgrade coverage_pyver_pragma
72+
pip config set global.prefer-binary true
7273
7374
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
7475
if: steps.setup-python.outcome == 'success'

.github/workflows/python_ci_macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ jobs:
6767
python -m site
6868
python -m pip install --upgrade pip setuptools wheel
6969
python -m pip install --upgrade tox~=3.0 virtualenv!=20.16.0
70+
pip config set global.prefer-binary true
7071
7172
- name: "Run Tests for Python ${{ matrix.config.python-version }}"
7273
if: steps.setup-python.outcome == 'success'

repo_helper.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,15 @@ third_party_version_matrix:
209209
- 8.1
210210
- 8.2
211211
# - latest
212+
213+
# Prefery binary wheels for older versions over sdists for newer ones
214+
github_ci_requirements:
215+
Linux:
216+
post:
217+
- pip config set global.prefer-binary true
218+
Windows:
219+
post:
220+
- pip config set global.prefer-binary true
221+
macOS:
222+
post:
223+
- pip config set global.prefer-binary true

0 commit comments

Comments
 (0)