https://pantsbuild.org/ logo
#general
Title
# general
c

calm-alarm-89082

08/14/2020, 8:05 PM
Hi, today we experienced a couple of issues where pants wasn't able to find gcc (required by one 3rd party dependency) when preparing the pex. We got it working adding
/usr/bin
to
interpreter_search_paths
I suspect it's not using the correct PATH, have you ever seen this sort of issue?
h

hundreds-father-404

08/14/2020, 8:17 PM
Hi Fede, what Pants version are you using? The answer changes a little depending on that.
c

calm-alarm-89082

08/14/2020, 8:25 PM
1.30 and only the v2 engine
h

hundreds-father-404

08/14/2020, 10:34 PM
Got it. The answer isn’t very satisfying in 1.30 -
interpreter_search_paths
is used both for discovering interpreters and for setting the $PATH. In 2.0.0.dev7, we cleaned that up by adding a new option called
--pex-executable-search-paths
, which is what’s used to set the $PATH for any subprocess that is run for the Python pipeline.
--python-setup-interpreter-search-paths
is now solely used for discovering the
python
binary. We’re pushing to get out
2.0.0.alpha0
out soon. Is your current approach working alright in 1.30, even though it’s not ideal?
c

calm-alarm-89082

08/15/2020, 3:02 AM
yes, it's working. I wasn't sure why and if it was the correct approach. thanks for the help and for the details 🙂 I'll give a try to 2.0.0 soon
❤️ 1
4 Views