Skip to content

Fix release wheel pipeline to emit binary extensions for macOS arm64#481

Merged
espenhgn merged 5 commits into
masterfrom
copilot/fix-macos-arm64-wheel-build
May 13, 2026
Merged

Fix release wheel pipeline to emit binary extensions for macOS arm64#481
espenhgn merged 5 commits into
masterfrom
copilot/fix-macos-arm64-wheel-build

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 13, 2026

The release workflow was failing on macos-14/arm64 during delocate-wheel because built wheels did not contain architecture-matching binary extensions. This updates packaging/build configuration so cibuildwheel consistently produces binary wheels with compiled Cython modules.

  • Packaging: ensure extension build path is active

    • In pyproject.toml, enabled Poetry setup-file generation for wheel builds:
      • generate-setup-file = true
    • Added setuptools to build-system requirements (with minimum bound) so generated setup-based extension builds can run in isolated build envs:
      • setuptools>=61.0
  • Release workflow: make cibuildwheel frontend/deps explicit

    • In .github/workflows/create-release.yml, set:
      • CIBW_BUILD_FRONTEND: build
      • CIBW_BEFORE_BUILD: python -m pip install --upgrade pip "Cython>=3.0" "numpy>=1.8"
  • Resulting behavior

    • Wheel builds now follow an explicit frontend + dependency bootstrap path and include compiled extension artifacts instead of producing effectively pure-Python wheels on arm64.
env:
  CIBW_BUILD: cp310-* cp311-* cp312-* cp313-* cp314-*
  CIBW_ARCHS: ${{ matrix.cibw_archs }}
  CIBW_BUILD_FRONTEND: build
  CIBW_BEFORE_BUILD: python -m pip install --upgrade pip "Cython>=3.0" "numpy>=1.8"

Copilot AI linked an issue May 13, 2026 that may be closed by this pull request
@coveralls
Copy link
Copy Markdown

coveralls commented May 13, 2026

Coverage Status

coverage: 98.66%. remained the same — copilot/fix-macos-arm64-wheel-build into master

Copilot AI and others added 3 commits May 13, 2026 08:21
Agent-Logs-Url: https://github.com/LFPy/LFPy/sessions/c9c9ead3-a000-48dd-979b-1abc58d4cd00

Co-authored-by: espenhgn <2492641+espenhgn@users.noreply.github.com>
Agent-Logs-Url: https://github.com/LFPy/LFPy/sessions/c9c9ead3-a000-48dd-979b-1abc58d4cd00

Co-authored-by: espenhgn <2492641+espenhgn@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix build matrix for macOS arm64 wheel release Fix release wheel pipeline to emit binary extensions for macOS arm64 May 13, 2026
Copilot AI requested a review from espenhgn May 13, 2026 08:30
@espenhgn espenhgn marked this pull request as ready for review May 13, 2026 08:54
@espenhgn espenhgn merged commit 9dd18ba into master May 13, 2026
13 checks passed
@espenhgn espenhgn deleted the copilot/fix-macos-arm64-wheel-build branch May 13, 2026 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix build matrix/wheel release

3 participants