https://pantsbuild.org/ logo
#development
Title
# development
e

early-needle-54791

09/16/2022, 12:09 AM
Is there a plan to stop supporting py27 in pex?
h

happy-kitchen-89482

09/16/2022, 12:12 AM
Nope, quite the opposite. @enough-analyst-54434 has done work to support a vendored pip, to retain py27 support, alongside a resolved, current pip, to support the latest pip features on newer interpreters
e

early-needle-54791

09/16/2022, 12:13 AM
interesting. Coming from the developer side we definitely lose out on some nice newer stdlib and syntax stuff from python3
e

enough-analyst-54434

09/16/2022, 12:13 AM
I don't break users TM
Users trump devs
e

early-needle-54791

09/16/2022, 12:15 AM
👌 good to know the philosophy there
Though releasing a new major version which dropped support for py27 doesn’t seem like it would break existing users
e

enough-analyst-54434

09/16/2022, 12:17 AM
I had looked up the Red Hat end of support and forget, but I think it's 2025 and so wanted to coincide with that
👍 1
Ah, I think that's not true if the tool is half baked. PEX entered a period of half baked after it left Wickman's hands . It's approaching fully baked (~no known bugs).
There was lots of ill thought out stuff added 2013-2018 or so.
Has taken a while to sort back out.
e

early-needle-54791

09/16/2022, 12:20 AM
makes sense
e

enough-analyst-54434

09/16/2022, 12:22 AM
One thing that's interesting to do is look at shard timings for Pex CI.
e

early-needle-54791

09/16/2022, 12:23 AM
are there distributions of many runs that github ci provides?
or do you spot check individual runs?
e

enough-analyst-54434

09/16/2022, 12:26 AM
No, I just spot check and that backs up what I see on my machine (I have the full complement of PyPy and CPython supported versions). Python 2.7 is still fastest.
e

early-needle-54791

09/16/2022, 12:27 AM
that would not be my initial expectation given all the perf improvements touted in python3
rewriting the container types and such
e

enough-analyst-54434

09/16/2022, 12:27 AM
Yeah, perf improvements relative to prior Python 3's definitely.
Not against 2 though for Pex / Pip workloads anyways.
😲 1
e

early-needle-54791

09/16/2022, 12:28 AM
I guess once you fix too many bugs you start to add overhead
there some local minima there lol
e

enough-analyst-54434

09/16/2022, 12:29 AM
Python 3 up through 3.7 is pretty atrocious, getting better steadily since then though. 3.11 is now pretty close for Pex.
e

early-needle-54791

09/16/2022, 12:30 AM
so basically python2.7 is dead long live python2.7. learned something today
e

enough-analyst-54434

09/16/2022, 12:31 AM
I am not too impressed by the language features and shiny toys. The security fixes have my attention of course, but that's the user's choice.
e

early-needle-54791

09/16/2022, 12:32 AM
heh yeah I don’t use walrus or anything. pathlib is nice
f-strings. I guess there is some stuff I like
e

enough-analyst-54434

09/16/2022, 12:35 AM
That all is nice but I think it's like 1% nice. So noise. If Pex could leverage asyncio or something like that that makes a real difference to users via perf I'd sing a different tune.
1
👌 1