-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
PEX_PYTHON_PATH
impacts interpreter selection for Pex installed from pip, but not the pex
release file
#1075
Comments
PEX_PYTHON_PATH
impacts interpreter selection for Pex from pip, but not the pex
release filePEX_PYTHON_PATH
impacts interpreter selection for Pex installed from pip, but not the pex
release file
I now understand why setting This means that unless the user explicitly has set -- It's not clear to me yet why the behavior is different when running Pex via the release page. |
Found it: #741. We strip |
…a PEX (#1077) Closes #1012. Currently, PEX defaults to searching the $PATH when `--interpreter-constraint` and/or `--resolve-local-platforms` are used. (Otherwise, it uses the current interpreter or `--python`). You can specify `PEX_PYTHON_PATH`, but this has several issues: * Env vars should only be used for runtime, not build time. We break that separation here. * This only works if `PEX_IGNORE_RCFILES` is not set to true. Pants must set this option, meaning Pants cannot leverage this mechanism. * The behavior doesn't work as expected if running Pex as a Pex: #1075 Instead of further using `PEX_PYTHON_PATH`, we add a proper `--python-path` flag. In a followup, we can remove the `PEX_PYTHON_PATH` mechanism.
Using
pex
installed viapip install pex
, I get this behavior:But using
pex
installed from the releases page, I get this behavior:The text was updated successfully, but these errors were encountered: