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

rhythmic-morning-87313

05/01/2022, 7:33 AM
Q18: When building & running pants from sources, how do I override the system Python with a pyenv-provided one?
1
Searching the pants source codes, I figured out that
build-support/common.sh
allows overriding Python executable to use by setting
PY
environment variable.
I think the docs should have explicit mention on this if I've not missed
and.... Q14 is resolved!
b

busy-vase-39202

05/01/2022, 4:00 PM
Thanks for that suggestion and update! By the way, feel free to use the Suggest Edits button in the docs to propose changes directly. The most user-friendly phrasing usually comes from users like you. Also, you're welcome to apply the emoji to resolved threads if you'd like.
w

wide-midnight-78598

05/02/2022, 2:15 PM
I've never used this, but I think this might also do it: https://www.pantsbuild.org/docs/reference-python-bootstrap#advanced-options Personally, I tend to just use the PY= whenever I need to, because it's relatively rare
5 Views