witty-crayon-22786
03/16/2020, 3:26 PMwitty-crayon-22786
03/16/2020, 3:27 PMhundreds-father-404
03/16/2020, 3:32 PMenough-analyst-54434
03/16/2020, 3:56 PM$ git grep RCFILES
src/python/pants/backend/python/rules/hermetic_pex.py: PEX_IGNORE_RCFILES="true",
src/python/pants/backend/python/tasks/python_execution_task_base.py: "PEX_IGNORE_RCFILES": "1",
witty-crayon-22786
03/16/2020, 4:27 PM./v2 --changed-since=master fmt
Failed to execute PEX file. Needed macosx_10_14_x86_64-cp-37-cp37m compatible dependencies for:
1: docformatter==1.3.1
But this pex only contains:
docformatter-1.3.1-py2-none-any.whl
2: untokenize==0.1.1
But this pex only contains:
untokenize-0.1.1-py2-none-any.whl
)
... the error implies that it is a runtime error, which looks like it should have been affected by the line in hermetic_pex.py
afaictenough-analyst-54434
03/16/2020, 4:27 PMwitty-crayon-22786
03/16/2020, 4:28 PM/etc/pexrc
resolves the issueenough-analyst-54434
03/16/2020, 4:28 PMwitty-crayon-22786
03/16/2020, 4:29 PM$ cat /etc/pexrc
PEX_PYTHON_PATH=/my/custom/python/2.7/bin/python2.7:/my/custom/python/3.6/bin/python3.6:/my/custom/python/3.7/bin/python3.7
PEX_PYTHON=/my/custom/python/2.7/bin/python2.7
enough-analyst-54434
03/16/2020, 4:29 PMwitty-crayon-22786
03/16/2020, 4:31 PMenough-analyst-54434
03/16/2020, 4:39 PMwitty-crayon-22786
03/16/2020, 4:41 PMwitty-crayon-22786
03/16/2020, 4:42 PMenough-analyst-54434
03/16/2020, 5:19 PM