refined-cat-61929
04/12/2024, 11:33 PMpex_binary will use the interpreter_constraints, which on my build I have:
[python]
interpreter_constraints = ["==3.12.*"]
enable_resolves = true
However, the shebang on my pex_binary is #!/usr/bin/env python3.9. I can perhaps override it, but I'm worried that something is going wrong. I see a few other odd things that might be caused by inappropriately using 3.9 instead of 3.12, such as parse errors using black that break on lines that should be fine with 3.12.
Any help on how to debug into this would be appreciated.wide-midnight-78598
04/12/2024, 11:35 PMinterpreter_constraints = ["==3.11.*"]refined-cat-61929
04/12/2024, 11:38 PMrefined-cat-61929
04/12/2024, 11:44 PMcomplete_platforms, which indicated Python 3.12, and me manually changing that to 3.11 in a few places didn't seem to help anything.wide-midnight-78598
04/12/2024, 11:45 PMcomplete_platforms shenanigans to deal with too.- but unsure if that was a blocker, or an anecdote)refined-cat-61929
04/12/2024, 11:46 PMwide-midnight-78598
04/12/2024, 11:47 PMrefined-cat-61929
04/12/2024, 11:48 PMcomplete_platforms also gave a correct shebang. Weird, since my JSON file I'm using seems pretty clear about 3.12 being the python version.wide-midnight-78598
04/12/2024, 11:48 PMwide-midnight-78598
04/12/2024, 11:50 PMrefined-cat-61929
04/13/2024, 12:00 AMwide-midnight-78598
04/13/2024, 12:03 AMrefined-cat-61929
04/13/2024, 12:16 AMldebug and it gives me a json parsing error for my json file in complete_platforms, and even more interestingly, I see from the stacktrace that it's running 3.9. That certainly seems wrong, but I know that goals default to some other python unless you tell it otherwise. On the other hand, the docs do say it pays attention to the python interpret constraints, but that isn't generally how other goals work.wide-midnight-78598
04/13/2024, 1:17 AMrefined-cat-61929
04/13/2024, 1:25 AMrefined-cat-61929
04/13/2024, 1:26 AMinterpreter_constraints on the pex_binary, asking for 3.12, it runs the goal with 3.9.curved-manchester-66006
04/15/2024, 1:49 PMsh_boot might be a work around: https://github.com/pantsbuild/pants/pull/19925refined-cat-61929
04/15/2024, 6:50 PM