Given a PEX, what's the incantation to know what t...
# development
b
Given a PEX, what's the incantation to know what the latest compatible Python version would be? E.g. Given
foo.pex
how could I tease out that
3.8
is the latest compatible
For context, I'm thinking about Python provided by Pants, using pyenv. So, what I'm thinking is instead of trying to get "ahead" of PEX with choosing the right interpreter, it'd be easier to just "go-with-the-pex-flow" and just ask it what it needs
e
That's circular though. How did you build the PEX in the 1st place?!
b
Welp, yeah fair point. Guess doing things rule-side is the only option 🙂
e
Yeah, rules already do this.
One thing to keep in mind is that, unlike for go or the JVM, you're slightly hamstrung. No pyenv for Windows. There is pyenv-win which is almost a like, but good to know the corner your backing in to too.
b
ha, the engine will have a friend rule-side in being a long ways form windowsless
Also, unlike the engine we can hide behind "opt-in"
e
Ok, as long as you're aware.