Skip to content

gh-145219: Emscripten bld configurable directory & only clean Emscripten#145581

Merged
freakboy3742 merged 4 commits intopython:mainfrom
hoodmane:configurable-cross-build-dir
Mar 9, 2026
Merged

gh-145219: Emscripten bld configurable directory & only clean Emscripten#145581
freakboy3742 merged 4 commits intopython:mainfrom
hoodmane:configurable-cross-build-dir

Conversation

@hoodmane
Copy link
Contributor

@hoodmane hoodmane commented Mar 6, 2026

Two small changes to the Emscripten build script:

  1. Make clean only delete the parts of cross-build that are emscripten specific
  2. Make the cross-build name configurable

cc @freakboy3742.

…mscripten

Two small changes to the Emscripten build script:
1. Make clean only delete the parts of cross-build that are emscripten specific
2. Make the cross-build name configurable
@hoodmane hoodmane force-pushed the configurable-cross-build-dir branch from 61bbce7 to a124b32 Compare March 6, 2026 10:13
@freakboy3742
Copy link
Contributor

!buildbot emscripten

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit a124b32 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F145581%2Fmerge

The command will test the builders whose names match following regular expression: emscripten

The builders matched are:

  • WASM Emscripten PR

@freakboy3742
Copy link
Contributor

!buildbot emscripten

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @freakboy3742 for commit 084133a 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F145581%2Fmerge

The command will test the builders whose names match following regular expression: emscripten

The builders matched are:

  • WASM Emscripten PR

Copy link
Contributor

@freakboy3742 freakboy3742 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; I've pushed one small feature (being able to optionally clean build as well), and one bug (resolving the user-provided cross-build path) fix; with those, we should be good to go.

"""Compute all build paths from the given cross-build directory."""
if cross_build_dir is None:
cross_build_dir = DEFAULT_CROSS_BUILD_DIR
cross_build_dir = Path(cross_build_dir)
Copy link
Contributor

Choose a reason for hiding this comment

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

This path needs to be resolved or a value of ./cross-build-3.15 will fail:

Suggested change
cross_build_dir = Path(cross_build_dir)
cross_build_dir = Path(cross_build_dir).absolute()

@freakboy3742 freakboy3742 enabled auto-merge (squash) March 9, 2026 02:09
@freakboy3742 freakboy3742 merged commit 0156133 into python:main Mar 9, 2026
49 of 50 checks passed
@miss-islington-app
Copy link

Thanks @hoodmane for the PR, and @freakboy3742 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 9, 2026
…pythonGH-145581)

Modifies the Emscripten build script to allow for custom cross-build directory
names, and to only clean Emscripten-specific paths (optionally including the
build python).
(cherry picked from commit 015613384fea7a00bb2077760e325e5baab6814b)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
@bedevere-app
Copy link

bedevere-app bot commented Mar 9, 2026

GH-145654 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Mar 9, 2026
freakboy3742 added a commit that referenced this pull request Mar 9, 2026
GH-145581) (#145654)

Modifies the Emscripten build script to allow for custom cross-build directory
names, and to only clean Emscripten-specific paths (optionally including the
build python).
(cherry picked from commit 0156133)

Co-authored-by: Hood Chatham <roberthoodchatham@gmail.com>
Co-authored-by: Russell Keith-Magee <russell@keith-magee.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants