Skip to content
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

Ensure venv pex does not enter a re-exec loop. #1286

Merged
merged 1 commit into from Mar 25, 2021

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Mar 25, 2021

Use the same environment variable trick used by pex_bootstrapper to
ensure we never enter aninifinite re-exec loop. Also check more valid
venv python path variants by resolving symlinks in the parent
directories of the known valid pythons.

Fixes #1285

Use the same environment variable trick used by pex_bootstrapper to
ensure we never enter aninifinite re-exec loop. Also check more valid
venv python path variants by resolving symlinks in the parent
directories of the known valid pythons.

Fixes pex-tool#1285
@jsirois jsirois mentioned this pull request Mar 25, 2021
4 tasks
Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

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

Yay! Thank you. I'm afk but will try this tomorrow morning to confirm it fixes things for me.

@jsirois jsirois merged commit 3c52cfc into pex-tool:main Mar 25, 2021
@jsirois jsirois deleted the issues/1285 branch March 25, 2021 14:54
@Eric-Arellano
Copy link
Contributor

Confirmed this fixed it. Thanks!

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.

Venv pex script enters an infinite re-exec loop.
2 participants