-
-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
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.
Thanks for the review @mdboom! |
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.
This works for me once I've made the couple of tweaks suggested inline; plus one question for my own edification.
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.
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.
👍
realpath
.python.sh
to mount all directories from the native file system except/dev
,/lib
and/proc
.all
so that we can run tests in-tree. Now that Python can seepybuilddir.txt
all of the paths work correctly running in-tree.node
(for example to enable experimental features or debugging)Fixes #127503
Fixes #127111