Uh oh!
There was an error while loading. Please reload this page.
gh-127503: Emscripten make Python.sh function as proper Python CLI - #127506
Conversation
This mounts all native directories into the Emscripten file system except for dev, lib, and proc.
Useful for: --experimental flags, --inspect flags, etc.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
hoodmane
commented
Dec 2, 2024
Thanks for the review @mdboom! |
freakboy3742
left a comment
There was a problem hiding this comment.
This works for me once I've made the couple of tweaks suggested inline; plus one question for my own edification.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Previous version only worked if the name was python.sh. If we symlink something else to it (say `python`) it would fail. This update makes it not depend on the name of the link.
Uh oh!
There was an error while loading. Please reload this page.
…CLI (python#127506) Modifies the python.sh script to work on macOS, and adapt to recent emscripten changes.
realpath.python.shto mount all directories from the native file system except/dev,/liband/proc.allso that we can run tests in-tree. Now that Python can seepybuilddir.txtall of the paths work correctly running in-tree.node(for example to enable experimental features or debugging)Fixes#127503
Fixes#127111