average-vr-56795
01/23/2019, 4:11 PM./pex37
with 3.6 as my python3
on my PATH
it complains that python3.7
couldn’t be found in the PATH…enough-analyst-54434
01/24/2019, 5:53 PMbitter-piano-88933
02/01/2019, 6:16 PMenough-analyst-54434
02/07/2019, 6:40 PMenough-analyst-54434
02/11/2019, 5:25 AMred-balloon-89377
02/12/2019, 10:06 AMdef test_interpreter_constraints_honored_without_ppp_or_pp():
# tox -e py35-integration -- -s -k test_interpreter_resolution_without_pex_python_path
# Create a pex with interpreter constraints, but for not the default interpreter in the path.
with temporary_dir() as td:
py36_path = ensure_python_interpreter(PY36)
pex_out_path = os.path.join(td, 'pex.pex')
res = run_pex_command(['--disable-cache',
'--interpreter-constraint===%s' % PY36,
'-o', pex_out_path],
env=make_env(
PATH=os.path.dirname(py36_path), # 3.6
PEX_IGNORE_RCFILES='1'
)
)
res.assert_success()
,
run_pex_command
calls pex.py::main
, which reads environment variables from the global ENV
instance of Variables
. If I insert this call in the first line of `pex.py::main`:
print("BL: Running bin/pex.py::main(). ENV._environ.get('PEX_IGNORE_RCFILES') = {}, os.environ.get('PEX_IGNORE_RCFILES') = {}".format( ENV._environ.get("PEX_IGNORE_RCFILES"), os.environ.get("PEX_IGNORE_RCFILES")))
, I get:
BL: Running bin/pex.py::main(). ENV._environ.get('PEX_IGNORE_RCFILES') = None, os.environ.get('PEX_IGNORE_RCFILES') = 1
Should this be made into an issue along the lines of “Make sure we update ENV
when running integration tests with custom envs”?enough-analyst-54434
02/12/2019, 3:15 PMrun_pex_command
instead of run_simple_pex
. The former tries to be lighter weight, the latter is more robust.enough-analyst-54434
02/12/2019, 3:16 PMrun_pex_command
is the way to go.red-balloon-89377
03/18/2019, 3:21 PMwitty-crayon-22786
03/18/2019, 4:58 PMenough-analyst-54434
03/26/2019, 6:33 PMwitty-crayon-22786
03/26/2019, 10:22 PMenough-analyst-54434
03/30/2019, 12:42 AMenough-analyst-54434
04/03/2019, 8:01 PMwitty-crayon-22786
04/12/2019, 4:34 PMwitty-crayon-22786
04/12/2019, 4:35 PM--inherit-sitepackages
?witty-crayon-22786
04/12/2019, 4:35 PMhundreds-father-404
05/05/2019, 11:24 PMwitty-crayon-22786
05/06/2019, 5:02 PMwitty-crayon-22786
05/06/2019, 5:03 PMenough-analyst-54434
05/08/2019, 2:38 PMwitty-crayon-22786
05/08/2019, 5:21 PMaloof-angle-91616
05/12/2019, 7:51 PMbuild-suppport/pants_venv
to add -f
to the pip install line to use a development/from-source version of any of pants's dependencies be useful? where would that note be most useful to add?witty-crayon-22786
05/13/2019, 4:42 PMaverage-vr-56795
05/14/2019, 11:06 AMaverage-vr-56795
05/14/2019, 11:06 AMaverage-vr-56795
05/14/2019, 11:15 AMhundreds-father-404
05/14/2019, 6:08 PMwitty-crayon-22786
05/14/2019, 6:19 PMhundreds-father-404
05/14/2019, 6:20 PMIt seems that the way it is coded is not scalable, as you need to update it each time a new options is added. There should be a more generic way of passing any cli options down to pex.Do we uh ask for him to submit a patch?