Skip to content

Avoid fast-path in --sh-boot script for PEX_PYTHON, PEX_PYTHON_PATH and PEX_PATH #2729

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

huonw
Copy link
Collaborator

@huonw huonw commented Mar 31, 2025

Similar to #2726, there's some additional variables that are need to avoid the --sh-boot fast-path.

Comment on lines +362 to +368
for env in [dict(PEX_PYTHON="FIXME"), dict(PEX_PYTHON_PATH="FIXME")]:
output = subprocess.check_output(
args=[pex, "-c", "import sys; print(sys.version)"],
env=make_env(PEX_ROOT=pex_root, **env),
stderr=subprocess.STDOUT,
)
assert False, "FIXME"
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am unclear on how to test these (and ran out of time today to investigate existing tests that use them): AIUI, the tests are run by tox with a specific interpreter available, and other may not be.

If there's a tip for how these should be structured, that'd be appreciated, otherwise I'll look at existing tests more, soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant