Skip to content
Merged
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
17 changes: 6 additions & 11 deletions .github/workflows/build_wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,24 +21,19 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest, macos-15-intel]
arch: [native]
python: ["{cp310,pp310,pp311}"]
python: ["{cp310,pp311}"]
# Split aarch64 across jobs because it uses emulation (slow)
include:
- os: ubuntu-latest
# DNS fails inside i686 containers on ubuntu-26.04 runners
- os: ubuntu-24.04
arch: i686
python: "{cp310,pp310,pp311}"
python: "{cp310,pp311}"
- os: ubuntu-latest
arch: aarch64
python: "cp310"
- os: ubuntu-latest
arch: aarch64
python: "pp310"
- os: ubuntu-latest
arch: aarch64
python: "pp3{10,11}"
- os: ubuntu-latest
arch: aarch64
python: "pp3{10,11}"
python: "pp311"
steps:
- uses: actions/checkout@v7
with:
Expand All @@ -49,7 +44,7 @@ jobs:
with:
platforms: all
if: runner.os == 'Linux' && matrix.arch == 'aarch64'
- uses: pypa/cibuildwheel@v4.2.1
- uses: pypa/cibuildwheel@v4.3.1
env:
CIBW_ARCHS: "${{ matrix.arch }}"
CIBW_BUILD: "${{ matrix.python }}-*"
Expand Down
8 changes: 1 addition & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,10 @@ Homepage = "https://python-rtmixer.readthedocs.io"
"Source Code" = "https://github.com/spatialaudio/python-rtmixer"

[tool.cibuildwheel]
enable = ["pypy", "pypy-eol"]
manylinux-aarch64-image = "manylinux2014"
manylinux-pypy_x86_64-image = "manylinux2014"
manylinux-pypy_aarch64-image = "manylinux2014"
manylinux-x86_64-image = "manylinux2014"
enable = ["pypy"]
test-command = "python -c \"import rtmixer; print(rtmixer.__version__)\""
# No portaudio on these platforms:
test-skip = "*_i686 *-musllinux_* *_aarch64"
# To enable testing we'd have to bump up to the Almalinux 8-based image:
# manylinux-aarch64-image = "manylinux_2_28"
repair-wheel-command = "bash ./tools/cibw_repair_wheel_command.sh {dest_dir} {wheel} {delocate_archs}"

[tool.cibuildwheel.linux]
Expand Down
6 changes: 6 additions & 0 deletions rtmixer_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
extra_compile_args = list()
if sys.platform == "linux":
extra_compile_args.append("--std=c99")
extra_kwargs = dict()
# cffi sets py_limited_api=True by default, which setuptools >= 84.1 no longer
# ignores for PyPy on Windows (giving an untagged, unimportable "_rtmixer.pyd")
if sys.implementation.name != 'cpython':
extra_kwargs['py_limited_api'] = False
ffibuilder.set_source(
'_rtmixer',
RINGBUFFER_CDEF + open('src/rtmixer.c').read(),
Expand All @@ -30,6 +35,7 @@
undef_macros=[
# 'NDEBUG'
],
**extra_kwargs,
)

if __name__ == '__main__':
Expand Down
Loading