Skip to content

Conversation

@brettcannon
Copy link
Member

@brettcannon brettcannon commented Jan 16, 2026

Along the way, leave a deprecated Tools/wasm/wasi/main.py behind for backwards-compatibility.

Along the way, leave a deprecated Tools/wasm/wasi/__main__.py behind for backwards-compatibility.
Copy link
Member

@zware zware left a comment

Choose a reason for hiding this comment

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

LGTM with a CODEOWNERS nit and a future archaeology suggestion. Note that I didn't really actually review any changes in __main__.py since it's completely recreated.


if __name__ == "__main__":
main()
runpy.run_path(checkout / "Platforms" / "WASI", run_name="__main__")
Copy link
Member

Choose a reason for hiding this comment

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

For nicer history, it might be better to just do the full rename in this PR and follow it up with adding the new redirect here.

I'll suppress my rant about only allowing squash merges :)

Copy link
Member Author

Choose a reason for hiding this comment

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

But if I just did a rename it would break the buildbots and leave the repo after this commit in a somewhat broken state for anyone else building.

Co-authored-by: Zachary Ware <zachary.ware@gmail.com>
@brettcannon brettcannon self-assigned this Jan 16, 2026
@AlexWaygood AlexWaygood removed their request for review January 16, 2026 23:45
Copy link
Member

@StanFromIreland StanFromIreland left a comment

Choose a reason for hiding this comment

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

Can you please update:

WASI_DIRS = frozenset({Path("Tools", "wasm")})

Comment on lines +1 to +2
Move WASI-related files to Platforms/WASI. Along the way, leave a deprecated
Tools/wasm/wasi/__main__.py behind for backwards-compatibility.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Move WASI-related files to Platforms/WASI. Along the way, leave a deprecated
Tools/wasm/wasi/__main__.py behind for backwards-compatibility.
Move WASI-related files to :file:`Platforms/WASI`. Along the way, leave a deprecated
:file:`Tools/wasm/wasi/__main__.py` behind for backwards-compatibility.


LOCAL_SETUP = CHECKOUT / "Modules" / "Setup.local"
LOCAL_SETUP_MARKER = (
b"# Generated by Tools/wasm/wasi .\n"
Copy link
Member

Choose a reason for hiding this comment

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

Should this not be updated?

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.

4 participants