Pre-install cffi to fix macOS Python 3.15 build - #233
Merged
icemac merged 2 commits intoMay 20, 2026
Conversation
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
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>
dataflake
approved these changes
May 19, 2026
icemac
merged commit May 20, 2026
f0217fc
into
config-with-c-code-template-51f0db4e
67 checks passed
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_eggsto 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@developwith the officialcoverallsapp/github-action@v2(verified in the GitHub Marketplace), as the org policy disallows the former.