bitter-ability-32190
03/06/2023, 5:25 PMsrc/python/pants/backend/python/util_rules/pex.py
, and specifically the usages of PexCliProcess
and the Python it is run with. ๐งตbitter-ability-32190
03/06/2023, 5:28 PMbuild_pex
is the only usage of a user Python running the Pex CLI process.
Is this really necessary? Would it change the behavior of building a PEX to unconditionally use (some) Python which isn't the Python we run user code with?enough-analyst-54434
03/06/2023, 5:30 PMenough-analyst-54434
03/06/2023, 5:30 PMbitter-ability-32190
03/06/2023, 5:31 PMsys.executable
is the FORTRAN interpreter? (obviously a thought experiment)enough-analyst-54434
03/06/2023, 5:31 PMbitter-ability-32190
03/06/2023, 5:32 PM--help
?enough-analyst-54434
03/06/2023, 5:33 PMenough-analyst-54434
03/06/2023, 5:34 PMPEX_PYTHON_PATH
/ --python-path
is for.bitter-ability-32190
03/06/2023, 5:35 PMenough-analyst-54434
03/06/2023, 5:36 PMbitter-ability-32190
03/06/2023, 5:37 PM--help
looking specifically at the PEX target environment options:
section, so I don't feel too bad ๐enough-analyst-54434
03/06/2023, 5:37 PMenough-analyst-54434
03/06/2023, 5:37 PMbitter-ability-32190
03/06/2023, 5:38 PMThe Python interpreter to use (default: current interpreter)
, in which case yay I found it, but not how to change it in the absense of an absolute pathbitter-ability-32190
03/06/2023, 5:39 PMenough-analyst-54434
03/06/2023, 5:40 PMbitter-ability-32190
03/06/2023, 5:51 PM--python-path
is unconditionally passed (because the controlling variable is never False
) so I'll pin this with a comment and switch the pex invocation to use some mystical Python