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
3 changes: 2 additions & 1 deletion .github/workflows/build_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ jobs:
- name: Get submodules
run: git submodule update --init --recursive
- name: Build wheels
uses: pypa/cibuildwheel@v2.23.3
uses: pypa/cibuildwheel@v4.2.1
env:
CIBW_ARCHS: ${{ matrix.cibw_archs }}
CIBW_SKIP: "pp*"
CIBW_ENABLE: "pypy pypy-eol"
- uses: actions/upload-artifact@v4.6.2
with:
name: wheels
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Install Python

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.23.3
run: python -m pip install cibuildwheel==4.2.1

- name: Get submodules
run: git submodule update --init --recursive
Expand All @@ -30,13 +30,15 @@ jobs:
python -m cibuildwheel --output-dir wheels
env:
CIBW_SKIP: "cp27-* pp27-*" # skip Python 2.7 wheels
CIBW_ENABLE: "pypy pypy-eol"

- name: Build wheels for mac and manylinux
if: "!startsWith(matrix.os, 'windows')"
run: |
python -m cibuildwheel --output-dir wheels
env:
CIBW_ARCHS_MACOS: "auto x86_64 universal2 arm64"
CIBW_ARCHS_MACOS: "auto auto32 x86_64 universal2 arm64"
CIBW_ENABLE: "pypy pypy-eol"

- uses: actions/upload-artifact@v4.6.2
name: Upload wheels
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
name: Install Python

- name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.23.3
run: python -m pip install cibuildwheel==4.2.1

- name: Get submodules
run: git submodule update --init --recursive
Expand All @@ -28,10 +28,12 @@ jobs:
python -m cibuildwheel --output-dir wheels
env:
CIBW_SKIP: "cp27-* pp27-*" # skip Python 2.7 wheels
CIBW_ENABLE: "pypy pypy-eol"

- name: Build wheels for mac and manylinux
if: "!startsWith(matrix.os, 'windows')"
run: |
python -m cibuildwheel --output-dir wheels
env:
CIBW_ARCHS_MACOS: "auto x86_64 universal2 arm64"
CIBW_ARCHS_MACOS: "auto auto32 x86_64 universal2 arm64"
CIBW_ENABLE: "pypy pypy-eol"
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ def run(self):
building_for_openbsd = 'openbsd' in self.plat_name # need testing

if building_for_linux:
# glibc/musl only declare memmem() when _GNU_SOURCE is set; GCC 14
# treats the missing prototype as an error.
module.define_macros.append(('_GNU_SOURCE', '1'))
module.define_macros.append(('USE_LINUX_PROC', '1'))
elif building_for_windows:
module.define_macros.append(('USE_WINDOWS_PROC', '1'))
Expand Down
Loading