[mypyc] lib-rt base64: support pyodide for Python 3.12 #20342
Merged
+9
−11
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.
Fixes the issue reported at mypyc/librt#14 (comment)
For Python 3.12, the pyodide_2024_0 ABI requires emscripten 3.1.58, which uses an older version of SIMDe that doesn't include all the NEON 64-bit intrinsics we need.
So we use the 32-bit NEON intrinsics implementation of base64 for Pyodide on Python 3.12, and use the 64-bit NEON intrinsics implementations of base64 for Pyodide on Python 3.13.
Pyodide for Python 3.13, the pyodide_2025_0 ABI, uses emscripten 4.0.9
Emscripten versdion 3.1.63 appears to be the first version with the updated SIMDe versions:
emscripten-core/emscripten@6223c43