Skip to content

Commit 8751bef

Browse files
committed
TMP: Updating cibuildwheel options
1 parent 7847808 commit 8751bef

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/wheels.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
python .github/workflows/download_mirror.py
4949
5050
- name: Set up QEMU
51-
if: runner.os == 'Linux'
51+
if: runner.os == 'Linux' && runner.arch == 'X64'
5252
uses: docker/setup-qemu-action@v3
5353
with:
5454
platforms: all
@@ -68,19 +68,17 @@ jobs:
6868
gfortran --version
6969
7070
- name: Build wheels
71-
uses: pypa/cibuildwheel@v2.21.3
71+
uses: pypa/cibuildwheel@v3.0.0
7272
env:
7373
# The brew built gfortran linked libraries have minimum macOS versions
7474
# of the macOS version they were built on. We would need to compile
7575
# from source rather than use setup-fortran if we want to support
7676
# lower macOS versions.
7777
MACOSX_DEPLOYMENT_TARGET: "${{ matrix.os == 'macos-13' && '13.0' || '14.0' }}"
78-
# TEMP don't use automated/isolated build environment, but manually
79-
# install build dependencies so we can build with meson from source
80-
CIBW_BUILD_FRONTEND: "pip; args: --no-build-isolation"
81-
CIBW_BEFORE_BUILD:
82-
python -m pip install git+https://github.com/mesonbuild/meson &&
83-
python -m pip install ninja meson-python setuptools_scm numpy
78+
# configure cibuildwheel on Linux to build native archs ('auto'),
79+
# and to split the remaining architectures between the x86_64 and
80+
# ARM runners
81+
CIBW_ARCHS_LINUX: ${{ runner.arch == 'X64' && 'auto ppc64le s390x' || 'auto' }}
8482

8583
- uses: actions/upload-artifact@v4
8684
with:

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ addopts = [
7373
]
7474

7575
[tool.cibuildwheel]
76+
environment.PIP_ONLY_BINARY = "numpy"
77+
environment.PIP_PREFER_BINARY = "1"
7678
# skip Python <3.10
7779
# skip 32 bit windows and linux builds for lack of numpy wheels
7880
skip = "cp36* cp37* cp38* cp39* *-win32 *_i686"

0 commit comments

Comments
 (0)