Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,22 @@ jobs:
- name: Install cibuildwheel
run: python -m pip install cibuildwheel

# On Linux, build the musllinux wheels first (free-threaded first) so a
# musllinux/FT failure surfaces quickly instead of only after all the
# manylinux wheels have built. cibuildwheel builds in a fixed order
# (manylinux before musllinux), so the order is forced here with --only.
- name: Build musllinux wheels first (Linux)
if: runner.os == 'Linux'
run: |
arch=$(uname -m)
python -m cibuildwheel --only "cp314t-musllinux_${arch}" --output-dir wheelhouse
python -m cibuildwheel --only "cp314-musllinux_${arch}" --output-dir wheelhouse

- name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse
env:
# musllinux already built above on Linux; build everything else here.
CIBW_SKIP: ${{ runner.os == 'Linux' && '*-musllinux_*' || '' }}

build_sdist:
name: Build source distribution
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,15 @@ filterwarnings = [
]

[tool.cibuildwheel]
# TODO(D107415749): muxllinux still has issues with FT.
build = [
"cp314-manylinux_x86_64",
"cp314t-manylinux_x86_64",
"cp314-musllinux_x86_64",
"cp314t-musllinux_x86_64",
"cp314-manylinux_aarch64",
"cp314t-manylinux_aarch64",
"cp314-musllinux_aarch64",
"cp314t-musllinux_aarch64",
"cp314-macosx_arm64",
"cp314-win_amd64",
]
Expand Down
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,11 @@ def print_section(title: str) -> None:
import sys
sys.argv.append("--pgo")

# TODO(T270479926): test_concurrent_initialization_subinterpreter is flaky
# under free-threading (concurrent subinterpreter init of the _datetime C
# extension) and shouldn't gate the PGO wheel build.
sys.argv += ["--ignore", "test_concurrent_initialization_subinterpreter"]

def main():
# This import must not be in the module body as it will start the tests
# running, and those using multiprocessing will fail because the initial
Expand Down
Loading