-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
Wrong Python version in a docker container running pex #19514
Comments
I had this same problem too starting with 2.16.0. Here is a work around that worked for me. In [pex]
executable_search_paths = ["<PYENV>"] Then, where you build your PEX targets, override the default shebang line:
Hopefully that helps! |
Thanks @jward-premise ! Not sure I understand what's happening but as long as it works, well, it woks. |
Just to confirm, this worked in 2.15 and only started in 2.16? Some background at pex-tool/pex#1540 |
Okay I have pants able to pass
But! I'm not exactly sure what to do with that. The current state as I understand it:
Some Options:
(B) feels like the least bad option -- or the default pants would start with today -- but I'm unsure of the deprecation policy, testing, and messaging to get there. |
Plumbing the |
Pex 2.1.154 is now released with the feature from pex-tool/pex#2296 that correctly auto-selects an appropriate shebang for the OP case: https://github.com/pantsbuild/pex/releases/tag/v2.1.154 |
All changes: - https://github.com/pantsbuild/pex/releases/tag/v2.1.153 - https://github.com/pantsbuild/pex/releases/tag/v2.1.154 - https://github.com/pantsbuild/pex/releases/tag/v2.1.155 Highlights: - `--no-pre-install-wheels` (and `--max-install-jobs`) that likely helps with: - #15062 - (the root cause of) #20227 - _maybe_ arguably #18293, #18965, #19681 - improved shebang selection, helping with #19514, but probably not the full solution (#19925) - performance improvements
Describe the bug
Pants version
2.16
OS
Mac OS 13.4 Intel
Additional info
If I remove
platforms
from thepex_binary
everything works fine.The text was updated successfully, but these errors were encountered: