enough-analyst-54434
02/12/2019, 3:16 PMrun_pex_command
is the way to go.red-balloon-89377
02/12/2019, 3:18 PMrun_simple_pex
the ability to override environments, right?enough-analyst-54434
02/12/2019, 3:19 PMenough-analyst-54434
02/12/2019, 3:19 PMred-balloon-89377
02/12/2019, 3:21 PMenv
parameter in run_pex_command
doesn’t do anything if we want to override something already set in ENV
, which could be solved with a call to patch
, but wanted to confirm that this behavior was not intentional 🙂 I’m probably missing a lot of the context here, so I want to be careful.red-balloon-89377
02/12/2019, 3:23 PMVariables.patch(env)
here https://github.com/pantsbuild/pex/blob/edc636ce6a004fa1bfc762d74f01c9fd3a862429/pex/testing.py#L271enough-analyst-54434
02/12/2019, 3:26 PMrun_pex_command
for a new set of cases of which your test would be the first instance. Whichever way you want to go is fine since dealing with the legacy of this fragile helper function is not something you should have to worry about.red-balloon-89377
02/12/2019, 3:30 PMrun_pex_command
do what it says it does, since I’d expect the env
parameter to override ENV
. However, I’m also open to trying to express the test in terms of run_simple_pex
, which will take a while if it’s even possible.enough-analyst-54434
02/12/2019, 3:38 PMred-balloon-89377
02/12/2019, 3:40 PM$ rg "env=make_env" tests | wc -l
15
red-balloon-89377
02/12/2019, 3:40 PMenough-analyst-54434
02/12/2019, 3:41 PMrun_pex_command
, so it's only the cases in that one file calling that one function.red-balloon-89377
02/12/2019, 3:42 PM$ rg "env=make_env" tests/test_integration.py | wc -l
15
Happy to create a PR that removes the env paramenough-analyst-54434
02/12/2019, 3:48 PMrun_pex_comnand
.red-balloon-89377
02/12/2019, 3:51 PMred-balloon-89377
02/12/2019, 3:54 PMred-balloon-89377
02/12/2019, 5:30 PMenough-analyst-54434
02/12/2019, 5:31 PMenough-analyst-54434
02/12/2019, 5:31 PMenough-analyst-54434
02/12/2019, 5:32 PMrun_pex_command
was just horrible. It cost you time and was always needlessly fragile.enough-analyst-54434
02/12/2019, 5:34 PMred-balloon-89377
02/12/2019, 5:37 PMred-balloon-89377
02/12/2019, 5:37 PMenough-analyst-54434
02/14/2019, 4:33 PMred-balloon-89377
02/14/2019, 5:01 PMenough-analyst-54434
02/14/2019, 5:01 PMred-balloon-89377
02/14/2019, 5:01 PMenough-analyst-54434
02/14/2019, 5:02 PM-mpex
worked?red-balloon-89377
02/14/2019, 5:06 PMpex.main()
with the correct env (where the interpreter is set by tox), right?enough-analyst-54434
02/14/2019, 5:07 PMred-balloon-89377
02/14/2019, 5:08 PM