-
-
Notifications
You must be signed in to change notification settings - Fork 33k
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 <ho.kim@ulagbulag.io>
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 <ho.kim@ulagbulag.io>
Sorry, it's far too easy to click the 'copilot' button, this was absolutely not my intent! A |
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
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 <ho.kim@ulagbulag.io> * pythongh-138489: Add missing build-details.json step for building wasm Signed-off-by: Ho Kim <ho.kim@ulagbulag.io> * Update Makefile.pre.in Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> --------- (cherry picked from commit db53ca3) Co-authored-by: Ho Kim <ho.kim@ulagbulag.io> Signed-off-by: Ho Kim <ho.kim@ulagbulag.io> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
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 <ho.kim@ulagbulag.io> * pythongh-138489: Add missing build-details.json step for building wasm Signed-off-by: Ho Kim <ho.kim@ulagbulag.io> * Update Makefile.pre.in Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> --------- (cherry picked from commit db53ca3) Co-authored-by: Ho Kim <ho.kim@ulagbulag.io> Signed-off-by: Ho Kim <ho.kim@ulagbulag.io> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
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 <ho.kim@ulagbulag.io> * pythongh-138489: Add missing build-details.json step for building wasm Signed-off-by: Ho Kim <ho.kim@ulagbulag.io> * Update Makefile.pre.in Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> --------- Signed-off-by: Ho Kim <ho.kim@ulagbulag.io> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Hello, this PR just adds a missing
build-details.json
build step on WASM ecosystems (e.g.WASI
).When cross-compiling for WASI by
build_wasm
orbuild_emscripten
, thebuild-details.json
step is now included in the build process, just like with native builds.This fixes the
libinstall
task which requires thebuild-details.json
file during the process.build-details.json
is missing on some platforms #138489