@@ -12,14 +12,16 @@ jobs:
1212 build_wheels :
1313 name : Build wheels on ${{ matrix.os }}
1414 runs-on : ${{ matrix.os }}
15+ env :
16+ min-numpy-version : " 1.16.0"
17+ min-numpy-hash : " 04/b6/d7faa70a3e3eac39f943cc6a6a64ce378259677de516bd899dd9eb8f9b32"
1518 strategy :
1619 matrix :
1720 os : [ubuntu-18.04, windows-latest, macos-latest]
1821 cibw_archs : ["auto"]
1922 include :
2023 - os : ubuntu-18.04
2124 cibw_archs : " aarch64"
22- numpy-version : " 1.16"
2325
2426 steps :
2527 - name : Set up QEMU
@@ -41,18 +43,18 @@ jobs:
4143 id : numpy-aarch64-cache
4244 with :
4345 path : numpy-aarch64-cache/
44- key : numpy-aarch64-cache-${{ matrix. numpy-version }}
46+ key : numpy-aarch64-cache-${{ env.min- numpy-version }}
4547
4648 - name : Install cibuildwheel
4749 run : |
4850 python -m pip install cibuildwheel==1.9.0
4951
50- - name : Build numpy 1.16 for aarch64
52+ - name : Build minimum NumPy for aarch64
5153 if : matrix.cibw_archs == 'aarch64' && steps.numpy-aarch64-cache.outputs.cache-hit != 'true'
5254 run : |
53- wget https://files.pythonhosted.org/packages/04/b6/d7faa70a3e3eac39f943cc6a6a64ce378259677de516bd899dd9eb8f9b32/ numpy-1.16.0 .zip
54- unzip numpy-1.16.0 .zip
55- cd numpy-1.16.0
55+ wget https://files.pythonhosted.org/packages/${{ env.min-numpy-hash }}/ numpy-${{ env.min-numpy-version }} .zip
56+ unzip numpy-${{ env.min-numpy-version }} .zip
57+ cd numpy-${{ env.min-numpy-version }}
5658 python -m cibuildwheel --output-dir ../numpy-aarch64-cache
5759 env :
5860 CIBW_BUILD : " cp36-* cp37-* cp38-*"
8082 CIBW_BUILD : " cp37-* cp38-*"
8183 CIBW_MANYLINUX_X86_64_IMAGE : manylinux1
8284 CIBW_MANYLINUX_I686_IMAGE : manylinux1
83- CIBW_BEFORE_BUILD : pip install certifi; pip install --find-links=numpy-aarch64-cache/ numpy==1.16
85+ CIBW_BEFORE_BUILD : pip install certifi; pip install --find-links=numpy-aarch64-cache/ numpy==${{ env.min-numpy-version }}
8486 MPL_DISABLE_FH4 : " yes"
8587 CIBW_ARCHS : ${{ matrix.cibw_archs }}
8688
9193 CIBW_BUILD : " cp36-*"
9294 CIBW_MANYLINUX_X86_64_IMAGE : manylinux1
9395 CIBW_MANYLINUX_I686_IMAGE : manylinux1
94- CIBW_BEFORE_BUILD : pip install certifi; pip install --find-links=numpy-aarch64-cache/ numpy==1.16
96+ CIBW_BEFORE_BUILD : pip install certifi; pip install --find-links=numpy-aarch64-cache/ numpy==${{ env.min-numpy-version }}
9597 MPL_DISABLE_FH4 : " yes"
9698 CIBW_ARCHS : ${{ matrix.cibw_archs }}
9799 if : >
@@ -103,7 +105,7 @@ jobs:
103105 python -m cibuildwheel --output-dir dist
104106 env :
105107 CIBW_BUILD : " pp3?-*"
106- CIBW_BEFORE_BUILD : pip install certifi numpy==1.16
108+ CIBW_BEFORE_BUILD : pip install certifi numpy==${{ env.min-numpy-version }}
107109 CIBW_ARCHS : ${{ matrix.cibw_archs }}
108110 if : >
109111 runner.os != 'Windows' && (
0 commit comments