Python 2 EOL How will Arch transition?
So I was just reading about python 2 being EOL in 2020 and how fedora is tackling the transition.
I know Python 3 is already the recommended default in Arch, but what will happen to all the dependent packages that are currently depending on python 2? Will python 2.7 stop being supported in the official repositories and move to the AUR?
Beyond the official Arch repos, I suppose things will still be somewhat supported in the AUR.
About this post
- Posted
- Archived
- Score
- 57 · 100% up
- Kind
- Text
- ID
- 89vim3
34 comments
Python 2 should no longer exists... so disappointing to see that many projects are still depending on it...
Other languages (e.g. PHP or JS) went the other route, keeping old baggage for such a long time it lead to pretty messy stuff instead of breaking backwards compatibility more aggressively here and there to throw away bad/old things. Python went for a hard'ish break, resulting in the need to keep python2 around for a long time for lots and lots of dependencies to catch up and since there was still python2 around, no one felt the need to push for an upgrade (or couldn't bcz some other lib wasn't ported yet), even though python3 was released almost 10 years ago. Somewhere in there is a middle ground, probably - but that's the difficulty with breaking version upgrades, there's no perfect solution.
I was saying the same thing until i saw some speed benchmarks. Python2 seems to be much faster than pyton3.
Then fix Python 3, don’t keep an obsolete version... That just make things harder to maintain and it’s more messy for new comers.
Those benchmarks must’ve been ancient.
Just looking at the arch packages list, I can see Python2 is a dep. for 1160 other packages. Many of those are optional, many are python2 libraries. That number will probably shrink a lot in 2 years.
What I would do is see what on your systems requires Python 2. If its a lot, find alternatives, if it's not a lot then get on github and request updates.
Additionally, it would be important to look how many of those packages can be upgraded to depend on python 3.
Not sure anymore but I think I saw a software that supports both py2 and py3 but still depends on py2 in Arch. How we should report such packages?
Why do you assume that every piece if software is hosting their files on Github?
Majority of the stuff I use is, I think everyone knew what I meant..
Just because Python 2 is EOL in 2020, doesn't mean projects that depend on it are automatically EOL. Moving or removing Python 2 dependent packages doesn't seem sensible for that reason.
They will no longer be getting even security packages. Is it ethical to support a language that will eventually be insecure?
Wouldn't it be CPython that's insecure not the language? Couldn't we fork and continue patching to have a Python 2 interpreter? I'm not suggesting this, just trying to understand.
I didn't interpret the conundrum as being about supporting the language, but as the hosting of packages with the language as a dependency. I don't believe those programs become not worth hosting once Python 2 support is dropped.
I am open to seeing download stats combined with a dependency graph of
python2*packages come 2020 and making an informed decision then or putting of the until later (2021), but I think it's to early to call.I'm not at all involved with the arch dev process, but it seems to me one way of doing it is to remove pyrhon2 and all the dependencies and put them in a new repo that users have to manually enable, kinda like [multilib].
Then remove that repo at some point.
That might be a good way to do it depending on how many projects still require it. But if it's too pervasive it's not an option unfortunately.
The transition will get easier as more distros apply pressure to make python2 go away.
Think all python2 packages will be moved to AUR, if no update/replacement can't be found.
Hopefully by then most of the packages still relying on Python 2 will move to Python 3. People in general tend to leave things to the last day, programmers aren't exceptions so it's too early to talk about it. We still have one year eight months til then, maybe revisit the topic in a year.
Anyhow, I can see Arch moving python2 and packages that rely on it to the community repo in 2020 first and only then phasing them out by 2021.
Unlike RHEL Arch can't support python2 if it's EOL, My guess would be that 99% of python2 dependent packages already have python3 versions/support so I think we should have an effort to find and fix the 1%
Deleted before we saved it.
I think there is broadly 2 kinds of dependencies :
In the former case, the issue will solve itself quickly as the Python community has really started to embrace Py3, and all major libs have been migrated. Some are even starting to drop py2 support. Those that haven't been ported have replacements most of the time
In the latter case, I don't know the Linux ecosystem enough, but it seems Gnome, Gimp use Python, and I have no idea of the effort involved to migrate.
Nothing has been decided yet, might be an idea to announce that Python 2 will be removed from the repos on date X.
I do some Python development. The EOL of Python 2 was announced in 2008 when Python 2.7 was released. (Originally, there wasn't even going to be a Python 2.7.) There were some pretty major issues that meant that it was tough to transition until Python 3.2 or 3.3 (2011 and 2012), so they extended 2.7 EOL from 2015 to 2020. That means that there was more than a decade's notice and well over 5 years that it was going to be inevitable.
Anything left at this point really has little in the way of excuses if it's even slightly used. Most of the libraries that don't support Python 3 have been abandoned by the original maintainer and forked (see PIL to Pillow ). At this point there should be less than a few dozen apps and less than half that are used enough people to even be in any official repos.
Looking at http://py3readiness.org/ , most not ported are features in Python 3 or part of the standard library now. BeautifulSoup was renamed BeautifulSoup4 and supports py3, Supervisor w/ py3 support is coming, ansible looks like they just screwed up their entry in PyPi, uwsgi isn't a python program (it's C) and DOES support py3 (including asyncio), Fabric has a v2 in progress and a forked Fabric3... Only one that seems to be holding out is httpretty.
Django, the SciPy community, Flask, and Twisted (big projects w/ a LOT of dependencies that were very concerned) are all converted and starting to drop 2.7 support in their latest releases.