-
-
Notifications
You must be signed in to change notification settings - Fork 33.3k
gh-138489: Add missing build-details.json step for building wasm
#139302
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
Conversation
Signed-off-by: Ho Kim <[email protected]>
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
build-details.json step for building wasmbuild-details.json step for building wasm
build-details.json step for building wasmbuild-details.json step for building wasm
Signed-off-by: Ho Kim <[email protected]>
|
Sorry, it's far too easy to click the 'copilot' button, this was absolutely not my intent! A |
Co-authored-by: Adam Turner <[email protected]>
f9a947b to
6bbad6d
Compare
|
Confirmed locally this also fixes #137878 $ wasmtime --dir /opt/wasi-python/ /opt/wasi-python/bin/python3.wasm
Python 3.15.0a0 (heads/fix/wasm-build-details.json-dirty:6bbad6d6cc2, Sep 24 2025, 10:33:33) [Clang 19.1.5-wasi-sdk (https://github.com/llvm/llvm-project ab4b5a2db582958af1e on wasi
Type "help", "copyright", "credits" or "license" for more information.
warning: can't use pyrepl: No module named 'termios'
>>> import math
>>> math.pi
3.141592653589793 |
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.
Thank you! This looks good to me.
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.
Thank you @HoKim98 😊
…asm (pythonGH-139302) * fix: add missing `build-details.json` step for building wasm Signed-off-by: Ho Kim <[email protected]> * pythongh-138489: Add missing build-details.json step for building wasm Signed-off-by: Ho Kim <[email protected]> * Update Makefile.pre.in Co-authored-by: Adam Turner <[email protected]> --------- (cherry picked from commit db53ca3) Co-authored-by: Ho Kim <[email protected]> Signed-off-by: Ho Kim <[email protected]> Co-authored-by: Adam Turner <[email protected]>
|
GH-139557 is a backport of this pull request to the 3.14 branch. |
|
I think it's worth backporting this, but it's not critical that this goes into 3.14.0. What do we think? A |
This comment was marked as outdated.
This comment was marked as outdated.
…asm (pythonGH-139302) * fix: add missing `build-details.json` step for building wasm Signed-off-by: Ho Kim <[email protected]> * pythongh-138489: Add missing build-details.json step for building wasm Signed-off-by: Ho Kim <[email protected]> * Update Makefile.pre.in Co-authored-by: Adam Turner <[email protected]> --------- (cherry picked from commit db53ca3) Co-authored-by: Ho Kim <[email protected]> Signed-off-by: Ho Kim <[email protected]> Co-authored-by: Adam Turner <[email protected]>
This comment was marked as outdated.
This comment was marked as outdated.
|
Backport PR already created at GH-139557, miss-islington doesn't appear to recognise this. A |
…asm (python#139302) * fix: add missing `build-details.json` step for building wasm Signed-off-by: Ho Kim <[email protected]> * pythongh-138489: Add missing build-details.json step for building wasm Signed-off-by: Ho Kim <[email protected]> * Update Makefile.pre.in Co-authored-by: Adam Turner <[email protected]> --------- Signed-off-by: Ho Kim <[email protected]> Co-authored-by: Adam Turner <[email protected]>
…wasm (GH-139302) (GH-139557) (cherry picked from commit db53ca3) Signed-off-by: Ho Kim <[email protected]> Co-authored-by: Ho Kim <[email protected]> Co-authored-by: Adam Turner <[email protected]>
Hello, this PR just adds a missing
build-details.jsonbuild step on WASM ecosystems (e.g.WASI).When cross-compiling for WASI by
build_wasmorbuild_emscripten, thebuild-details.jsonstep is now included in the build process, just like with native builds.This fixes the
libinstalltask which requires thebuild-details.jsonfile during the process.build-details.jsonis missing on some platforms #138489