Skip to content

Pre-install cffi to fix macOS Python 3.15 build - #233

Merged
icemac merged 2 commits into
config-with-c-code-template-51f0db4efrom
fix-macos-3.15-cffi-arch
May 20, 2026
Merged

Pre-install cffi to fix macOS Python 3.15 build#233
icemac merged 2 commits into
config-with-c-code-template-51f0db4efrom
fix-macos-3.15-cffi-arch

Conversation

@icemac

@icemac icemac commented May 18, 2026

Copy link
Copy Markdown
Member

Fix the failing build-package (3.15, macos-latest) job.

Pre-install cffi natively for Python 3.15 macOS builds

On ARM64 macOS runners, the x86_64 cross-compilation step causes setup_requires/fetch_build_eggs to build cffi from source with x86_64 flags (no pre-built 3.15 wheel exists yet). Python (arm64) then cannot load the x86_64 _cffi_backend.so.

Pre-installing cffi via pip ensures it is available natively so setuptools does not attempt to rebuild it with cross-compilation flags.

Replace coveralls action

Replace AndreMiras/coveralls-python-action@develop with the official coverallsapp/github-action@v2 (verified in the GitHub Marketplace), as the org policy disallows the former.

On ARM64 macOS runners, the x86_64 cross-compilation step causes
setup_requires/fetch_build_eggs to build cffi from source with x86_64
flags (no pre-built 3.15 wheel exists). Python (arm64) then cannot load
the x86_64 _cffi_backend.so.

Pre-installing cffi via pip ensures it is available natively so
setuptools does not attempt to rebuild it with cross-compilation flags.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@icemac
icemac marked this pull request as ready for review May 18, 2026 18:09
…ction

The andremiras action is not allowed by the org's action policy. Switch to
the official Coveralls-maintained action which is verified in the GitHub
Marketplace.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@icemac
icemac merged commit f0217fc into config-with-c-code-template-51f0db4e May 20, 2026
67 checks passed
@icemac
icemac deleted the fix-macos-3.15-cffi-arch branch May 20, 2026 05:31
icemac added a commit that referenced this pull request May 21, 2026
* Configuring for c-code

* Add compatibility definitions for PyPy's trashcan mechanism

* Pre-install cffi to fix macOS Python 3.15 build (#233)

* Pre-install cffi natively to fix macOS 3.15 x86_64 cross-compilation

On ARM64 macOS runners, the x86_64 cross-compilation step causes
setup_requires/fetch_build_eggs to build cffi from source with x86_64
flags (no pre-built 3.15 wheel exists). Python (arm64) then cannot load
the x86_64 _cffi_backend.so.

Pre-installing cffi via pip ensures it is available natively so
setuptools does not attempt to rebuild it with cross-compilation flags.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Replace AndreMiras/coveralls-python-action with coverallsapp/github-action

The andremiras action is not allowed by the org's action policy. Switch to
the official Coveralls-maintained action which is verified in the GitHub
Marketplace.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.

2 participants