some-restaurant-1855
04/15/2024, 5:13 PM[python-bootstrap]
search_path = [
"<PATH>",
"<PYENV>",
"$HOME/workspace/.pythoninterpreters/python3.10.13/python/install/bin",
]
basically pants wont find the interpreter in the custom path ($HOME/...). If i add that path to my PATH env var it works fine - does it not like the env var syntax?fast-nail-55400
04/15/2024, 5:36 PMenv function in BUILD files to access environment variables. You could write that path as:
f"{env('HOME')}/workspace/.pythoninterpreters/python3.10.13/python/install/bin"fast-nail-55400
04/15/2024, 5:37 PMsome-restaurant-1855
04/15/2024, 5:44 PM"%(buildroot)s/.python/python3.10.13/python/install/bin" ; i didn't realize it needed special interpretationsome-restaurant-1855
04/15/2024, 5:44 PMfast-nail-55400
04/15/2024, 5:45 PMbuildroot is injected as a Python variable into the BUILD file so that is why it is available.fast-nail-55400
04/15/2024, 5:46 PMenvfast-nail-55400
04/15/2024, 5:47 PMsome-restaurant-1855
04/15/2024, 5:53 PMsome-restaurant-1855
04/15/2024, 5:54 PM