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

Make pants.pex more useable. #13842

Merged
merged 2 commits into from
Dec 10, 2021

Conversation

jsirois
Copy link
Contributor

@jsirois jsirois commented Dec 8, 2021

Previously:

  1. The shebang was fixed at #!/usr/bin/env python3.7 so the universal
    PEX would not work on machines with only Python 3.8 or Python 3.9.
  2. There were no ICs; which are required by 1.
  3. The PEX did not take advantage of --venv mode, which is almost
    surely what you want for a repeatedly run tool.

[ci skip-rust]
[ci skip-build-wheels]

Previously there were no ICs; so you'd be as likely as not to have
pants.pex blow-up on boot. Additionally, the PEX did not take advantage
of --venv mode, which is almost surely what you want for a repeatedly
run tool.

[ci skip-rust]
[ci skip-build-wheels]
Copy link
Sponsor Member

@stuhood stuhood left a comment

Choose a reason for hiding this comment

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

Oof. Thanks!

@jsirois
Copy link
Contributor Author

jsirois commented Dec 10, 2021

More oof:

$ head -1 pants.2.9.0.dev3.pex
#!/usr/bin/env python3.7

Further fix coming.

…3.9.

# Rust tests and lints will be skipped. Delete if not intended.
[ci skip-rust]

# Building wheels and fs_util will be skipped. Delete if not intended.
[ci skip-build-wheels]
@jsirois jsirois merged commit 7260785 into pantsbuild:main Dec 10, 2021
@jsirois jsirois deleted the pants.pex/proof-no-one-uses-these branch December 10, 2021 17:52
@wisechengyi wisechengyi mentioned this pull request Dec 13, 2021
@Eric-Arellano
Copy link
Contributor

Sorry I didn't review this. It looks like #11954 is still a problem and impacted a user https://pantsbuild.slack.com/archives/C046T6T9U/p1646756130294799?thread_ts=1646682557.453909&cid=C046T6T9U

John suggested the fix for this - I can try to implement and also add the smoke test for pants.pex.

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.

None yet

3 participants