As far as it looks to me, the relevant part in PEX...
# general
f
As far as it looks to me, the relevant part in PEX appears to be the PEXBuilder class, as it allows to set the shebang. The only part in Pants using the PEXBuilder appears to be PythonChroot, PythonBinary appears to only assemble represent the necessary information for the python_binary target.