Skip to content

Commit 72ac200

Browse files
committed
Try building wheels for all python on AMD and better overrides on ARM
1 parent 95e854d commit 72ac200

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

.github/workflows/build-wheels.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,19 @@ jobs:
5858

5959
steps:
6060
- uses: actions/checkout@v5
61+
- name: Build wheels
62+
# TODO: remove
63+
if: matrix.cibw_archs == 'AMD64'
64+
uses: pypa/cibuildwheel@v3.1.4 # matplotlib had v3.1.3
65+
with:
66+
package-dir: .
67+
output-dir: wheelhouse
68+
config-file: "{package}/pyproject.toml"
69+
env:
70+
CIBW_ARCHS: ${{ matrix.cibw_archs }}
6171
- name: Build wheels for CPython 3.9
72+
# TODO: remove
73+
if: matrix.cibw_archs == 'ARM64'
6274
uses: pypa/cibuildwheel@v3.1.4 # matplotlib had v3.1.3
6375
with:
6476
package-dir: .
@@ -68,6 +80,8 @@ jobs:
6880
CIBW_BUILD: "cp39-*"
6981
CIBW_ARCHS: ${{ matrix.cibw_archs }}
7082
- name: Build wheels for CPython 3.12
83+
# TODO: remove
84+
if: matrix.cibw_archs == 'ARM64'
7185
uses: pypa/cibuildwheel@v3.1.4 # matplotlib had v3.1.3
7286
with:
7387
package-dir: .

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ install = [
143143
# FIXME: Remove this override once dependencies are available on PyPI.
144144
[[tool.cibuildwheel.overrides]]
145145
select = "*-win_arm64"
146-
before-test = """\
146+
before-build = """\
147147
pip install --pre \
148148
--index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
149149
numpy"""

0 commit comments

Comments
 (0)