adamant-finland-77773
07/25/2023, 8:04 AMdocker_image
to run a pex with platforms
specified, I get
/usr/bin/env: 'python3.9': No such file or directory
I have no idea where 3.9
comes from. I don't have it on my system, I use 3.10
everywhere in files and configurations.fast-refrigerator-12613
07/25/2023, 11:06 AMpants.toml
, tell pants to use your PYENV installs to run pex. It defaults to "<PATH>"
[pex]
executable_search_paths = ["<PYENV>"]
Then, where you build your PEX targets, override the default shebang line
pex_binary(
name="bin",
entry_point="foo.bar.main",
shebang="#!/usr/bin/env python3",
)
adamant-finland-77773
07/25/2023, 3:49 PM