Q18: When building & running pants from source...
# general
r
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
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
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