Skip to content

Conversation

@hoodmane
Copy link
Member

@hoodmane hoodmane commented Feb 3, 2025

This requires this upstream fix which came out in Emscripten 3.1.73: emscripten-core/emscripten#23020

Applied upstream in the cpython repo here:
https://github.com/python/cpython/pull/127113/files#diff-31f61a127a59386957acba86e9acedf0a96bc6ebe1ac159a48e39b1a291111b5R73-R75

This fixes an error that occurs when building with assertions -- we called _py_version_major before the runtime was set up so it triggered an assertion failure.

This requires this upstream fix which came out in Emscripten 3.1.73:
emscripten-core/emscripten#23020

Applied upstream in the cpython repo here:
https://github.com/python/cpython/pull/127113/files#diff-31f61a127a59386957acba86e9acedf0a96bc6ebe1ac159a48e39b1a291111b5R73-R75

This fixes an error that occurs when building with assertions -- we
called `_py_version_major` before the runtime was set up so it triggered
an assertion failure.
Copy link
Member

@agriyakhetarpal agriyakhetarpal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks, @hoodmane!

hoodmane and others added 2 commits February 3, 2025 15:53
Co-authored-by: Agriya Khetarpal <74401230+agriyakhetarpal@users.noreply.github.com>
@hoodmane hoodmane merged commit 8554663 into pyodide:main Feb 3, 2025
39 of 41 checks passed
@hoodmane hoodmane deleted the py-version-export branch February 3, 2025 19:35
Copy link
Member

@ryanking13 ryanking13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

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.

3 participants