https://pantsbuild.org/ logo
e

echoing-manchester-70122

06/01/2020, 4:58 PM
We're getting
Copy code
No valid Python interpreter found. For this Pants version, Pants requires Python 3.6+.
Could not find . Please ensure  is on your PATH.
with 1.23.0. The pants documentation still says:
Copy code
By default, pants uses ['CPython>=2.7,<3']
w

witty-crayon-22786

06/01/2020, 5:21 PM
hey Adam
so, the first message is for pants itself, and the latter message is for code that pants is testing
let me look in the release notes to answer your question
e

echoing-manchester-70122

06/01/2020, 5:26 PM
is there a way to force the generated pex to use
/usr/bin/env python3
?
w

witty-crayon-22786

06/01/2020, 5:26 PM
for which part: pants, or the code that pants is building?
e

echoing-manchester-70122

06/01/2020, 5:26 PM
the generated artifact (
pants binary
)
w

witty-crayon-22786

06/01/2020, 5:27 PM
oh, or do you mean to set the
shebang
line? you can do that explicitly, yea
e

echoing-manchester-70122

06/01/2020, 5:28 PM
yes the shebang
w

witty-crayon-22786

06/01/2020, 5:28 PM
can find-in-page in the build dictionary for “shebang”:
shebang = ..., 	Use this shebang for the generated pex. (default: None)
e

echoing-manchester-70122

06/01/2020, 5:29 PM
thanks
6 Views