Skip to content

Commit af20986

Browse files
committed
Clean up NumPy dependencies in wheel CI
1 parent 84354cf commit af20986

File tree

1 file changed

+5
-24
lines changed

1 file changed

+5
-24
lines changed

.github/workflows/cibuildwheel.yml

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ jobs:
1313
name: Build wheels on ${{ matrix.os }}
1414
runs-on: ${{ matrix.os }}
1515
env:
16-
min-numpy-version: "1.17.3"
17-
min-numpy-hash: "b6/d6/be8f975f5322336f62371c9abeb936d592c98c047ad63035f1b38ae08efe"
1816
CIBW_ARCHS_MACOS: "x86_64 universal2 arm64"
1917
strategy:
2018
matrix:
@@ -40,35 +38,18 @@ jobs:
4038
with:
4139
python-version: '3.8'
4240

43-
- uses: actions/cache@v2
44-
id: numpy-cache
45-
with:
46-
path: numpy-aarch64-cache/
47-
key: numpy-${{ matrix.cibw_archs }}-cache-${{ env.min-numpy-version }}
48-
4941
- name: Install cibuildwheel
5042
run: |
5143
python -m pip install cibuildwheel==2.1.1
5244
53-
- name: Build minimum NumPy for aarch64
54-
if: matrix.cibw_archs == 'aarch64' && steps.numpy-cache.outputs.cache-hit != 'true'
55-
run: |
56-
wget https://files.pythonhosted.org/packages/${{ env.min-numpy-hash }}/numpy-${{ env.min-numpy-version }}.zip
57-
unzip numpy-${{ env.min-numpy-version }}.zip
58-
cd numpy-${{ env.min-numpy-version }}
59-
python -m cibuildwheel --output-dir ../numpy-aarch64-cache
60-
env:
61-
CIBW_BUILD: "cp38-*"
62-
CIBW_ARCHS: aarch64
63-
6445
- name: Build wheels for CPython 3.10
6546
run: |
6647
python -m cibuildwheel --output-dir dist
6748
env:
6849
CIBW_BUILD: "cp310-*"
6950
CIBW_MANYLINUX_X86_64_IMAGE: manylinux2014
7051
CIBW_MANYLINUX_I686_IMAGE: manylinux2014
71-
CIBW_BEFORE_BUILD: pip install certifi numpy==1.21.3
52+
CIBW_BEFORE_BUILD: pip install certifi oldest-supported-numpy
7253
MPL_DISABLE_FH4: "yes"
7354
CIBW_ARCHS: ${{ matrix.cibw_archs }}
7455

@@ -79,18 +60,18 @@ jobs:
7960
CIBW_BUILD: "cp39-*"
8061
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
8162
CIBW_MANYLINUX_I686_IMAGE: manylinux1
82-
CIBW_BEFORE_BUILD: pip install certifi numpy==1.19.3
63+
CIBW_BEFORE_BUILD: pip install certifi oldest-supported-numpy
8364
MPL_DISABLE_FH4: "yes"
8465
CIBW_ARCHS: ${{ matrix.cibw_archs }}
8566

86-
- name: Build wheels for CPython
67+
- name: Build wheels for CPython 3.8
8768
run: |
8869
python -m cibuildwheel --output-dir dist
8970
env:
9071
CIBW_BUILD: "cp38-*"
9172
CIBW_MANYLINUX_X86_64_IMAGE: manylinux1
9273
CIBW_MANYLINUX_I686_IMAGE: manylinux1
93-
CIBW_BEFORE_BUILD: pip install certifi; pip install --find-links=numpy-aarch64-cache/ numpy==${{ env.min-numpy-version }}
74+
CIBW_BEFORE_BUILD: pip install certifi numpy==1.19.2
9475
MPL_DISABLE_FH4: "yes"
9576
CIBW_ARCHS: ${{ matrix.cibw_archs }}
9677

@@ -99,7 +80,7 @@ jobs:
9980
python -m cibuildwheel --output-dir dist
10081
env:
10182
CIBW_BUILD: "pp38-*"
102-
CIBW_BEFORE_BUILD: pip install certifi numpy==${{ env.min-numpy-version }}
83+
CIBW_BEFORE_BUILD: pip install certifi oldest-supported-numpy
10384
CIBW_ARCHS: ${{ matrix.cibw_archs }}
10485
PIP_USE_FEATURE: in-tree-build
10586
if: matrix.cibw_archs != 'aarch64'

0 commit comments

Comments
 (0)