https://pantsbuild.org/ logo
#pex
Title
# pex
a

average-vr-56795

01/23/2019, 4:11 PM
If we want to use the pex binary from python that isn’t 2.7 or 3.7, how are we meant to do so? If I run
./pex37
with 3.6 as my
python3
on my
PATH
it complains that
python3.7
couldn’t be found in the PATH…
e

enough-analyst-54434

01/23/2019, 4:26 PM
That's issue worthy. Pex will need an update to the release process to be either less specific, ie pex3 + python3 shebang or else add another binary (pex36). I'd love not to do the latter. For now, you can build your own pex using pex or else re-write the released pex's shebang.
👍 1
The short answer should have been you're not meant to do so - you're meant to build your own.
a

average-vr-56795

01/23/2019, 4:55 PM
Is it just the shebang?
e

enough-analyst-54434

01/23/2019, 5:13 PM
Pretty darn sure, yes.
a

average-vr-56795

01/23/2019, 5:15 PM
Can we just release one
pex
then, and have people munge paths if they need more control?
👍 1
e

enough-analyst-54434

01/23/2019, 5:31 PM
Yes. I'll file an issue this evening and perhaps solve this for the 1.6.1 release tonight.
🎉 1
a

average-vr-56795

01/23/2019, 5:31 PM
Awesome, thanks!
e

enough-analyst-54434

01/24/2019, 5:41 PM
Unfortunately, for 1.6.1, I'll just have to add pex34, pex35 and pex36 - the gory details are here: https://github.com/pantsbuild/pex/issues/654
a

average-vr-56795

01/24/2019, 11:03 PM
Ugh fun 😞 Thanks for investigating (and flexibiling!)
IIRC @witty-crayon-22786 was looking at the ORing interpreter constraints issue…
e

enough-analyst-54434

01/25/2019, 12:12 AM
He was - it looks like in the wrong place. I've updated his issue to point to the pex issue.
❤️ 1
w

witty-crayon-22786

01/25/2019, 12:13 AM
thanks!
h

hundreds-father-404

03/10/2019, 2:08 PM
@average-vr-56795 did you figure out how to hackily get pex37 working with pex36? Do you rewrite PEX-INFO?
e

enough-analyst-54434

03/10/2019, 6:14 PM
I published pex3{4,5,6} in addition to the existing pex{2,3}7. See here: https://github.com/pantsbuild/pex/releases/tag/v1.6.1
Do you need this for an older release?
h

hundreds-father-404

03/10/2019, 6:16 PM
Yes for older release. But now that Pants’ upgrade to Pex is coming soon I can go without this workaround! I was trying to hack a workaround to be able to iterate on Py3 release PR
e

enough-analyst-54434

03/10/2019, 6:18 PM
I'm in Spain through the 20th with odd hours around climbing. While I have the chance, I'll retroactively publish pex 3{4,5,6} for 1.5.3 and 1.6.0 just in case.
❤️ 1
👌 1
OK - Done for 1.5.3 which Pants uses now and 1.6.0.
❤️ 1
w

witty-crayon-22786

03/10/2019, 8:25 PM
Have fun John!
✈️ 1
e

enough-analyst-54434

03/10/2019, 10:53 PM
Thanks Stu!