-
-
Notifications
You must be signed in to change notification settings - Fork 57
hack(venv_shim): Unset -E and translate -I to -s #705
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
base: main
Are you sure you want to change the base?
Conversation
Python has an `-E` flag, which causes it to ignore PYTHONHOME and PYTHONEXECUTABLE both of which are key to how we're making the shim work. Add a flag parser to the shim so we process the argv and strip out -E if it's set, and if -I is set we translate it to its equivalent -E and -s, and drop the -E. Add Rust tests covering some basic cases for the parser so we aren't integration testing that. Update Clap. Go back to unwind rather than abort as our error handling strategy as it's required for writing tests and clap.
|


Python has an
-Eflag, which causes it to ignore PYTHONHOME and PYTHONEXECUTABLE both of which are key to how we're making the shim work.Add a flag parser to the shim so we process the argv and strip out -E if it's set, and if -I is set we translate it to its equivalent -E and -s, and drop the -E.
Add Rust tests covering some basic cases for the parser so we aren't integration testing that.
Update Clap.
Go back to unwind rather than abort as our error handling strategy as it's required for writing tests and clap.
Fixes #703.
Changes are visible to end-users: no
py_venvwill now unset the-Einterpreter flag with which it's incompatible.-Iis translated to-s.Test plan