Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-36231 for v3.5.10: fix Unsupported MacOS X CPU type in ffi.h #2633

Merged
merged 1 commit into from
Feb 26, 2023

Conversation

chaimleib
Copy link
Contributor

@chaimleib chaimleib commented Feb 26, 2023

Description

Even though CI was passing before this PR on macOS 11 and 12, I was not able to build v3.5.10 on macOS 13 with M1. I was getting this, and a failure on importing ctypes:

/private/var/folders/v1/stbp2q2j65x393vm2n2h673c0000gn/T/python-build.20230226071459.74440/Python-3.5.10/Modules/_ctypes/libffi_osx/include/ffi.h:65:3: error: "Unsupported MacOS X CPU type"
#       error "Unsupported MacOS X CPU type"
        ^

With these patches, which I copied or adapted from v3.6.15, I got a successful build.

Tests

On macOS 13 with M1:

pyenv install 3.5.10

@native-api native-api merged commit 3bfc97a into pyenv:master Feb 26, 2023
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.

None yet

2 participants