-
-
Notifications
You must be signed in to change notification settings - Fork 185
Add support for Python 3.14 on musl #568
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
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
40c4afa
Add support for Python 3.14 on musl
zanieb e13624f
Allow missing `cpuid.h`
zanieb 6c2a3b2
Patch `cpuid.h` guard
zanieb 5ba95ac
Patch `__cpuid_count` too
zanieb 445dc69
Update match for 3.13+
zanieb 70de8d8
Disable free-threaded builds
zanieb cd1c6dd
Include `cpuid.h` from clang
zanieb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -391,7 +391,7 @@ if [ "${CC}" = "musl-clang" ]; then | |
# provided by musl. These are part of the include files that are part of clang. | ||
# But musl-clang eliminates them from the default include path. So copy them into | ||
# place. | ||
for h in /tools/${TOOLCHAIN}/lib/clang/*/include/*intrin.h /tools/${TOOLCHAIN}/lib/clang/*/include/{__wmmintrin_aes.h,__wmmintrin_pclmul.h,mm_malloc.h}; do | ||
for h in /tools/${TOOLCHAIN}/lib/clang/*/include/*intrin.h /tools/${TOOLCHAIN}/lib/clang/*/include/{__wmmintrin_aes.h,__wmmintrin_pclmul.h,mm_malloc.h,cpuid.h}; do | ||
filename=$(basename "$h") | ||
if [ -e "/tools/host/include/${filename}" ]; then | ||
echo "${filename} already exists; don't need to copy!" | ||
|
@@ -416,7 +416,7 @@ if [ -n "${CPYTHON_DEBUG}" ]; then | |
fi | ||
|
||
# Explicitly enable mimalloc on 3.13+, it's already included by default but with this it'll fail | ||
# if it's missing from the system. The MUSL builds do not supprt mimalloc yet. | ||
# if it's missing from the system. The musl builds do not supprt mimalloc yet. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. (funny this typo was retained — but this line is deleted in #571) |
||
if [[ -n "${PYTHON_MEETS_MINIMUM_VERSION_3_13}" && "${CC}" != "musl-clang" ]]; then | ||
CONFIGURE_FLAGS="${CONFIGURE_FLAGS} --with-mimalloc" | ||
fi | ||
|
@@ -974,7 +974,7 @@ s390x-unknown-linux-gnu) | |
x86_64-unknown-linux-*) | ||
# In Python 3.13+, the musl target is identified in cross compiles and the output directory | ||
# is named accordingly. | ||
if [ "${CC}" = "musl-clang" ] && [ "${PYTHON_MAJMIN_VERSION}" = "3.13" ]; then | ||
if [[ "${CC}" = "musl-clang" && -n "${PYTHON_MEETS_MINIMUM_VERSION_3_13}" ]]; then | ||
PYTHON_ARCH="x86_64-linux-musl" | ||
else | ||
PYTHON_ARCH="x86_64-linux-gnu" | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels weird to add these in this PR but shrug
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They were enabled initially then toggled off — I'd probably omit them if I hadn't fixed it in the next change.