6 ms·
But at the same time, Microsoft is actually throwing people at the task to maintain it meanwhile Apple is letting them languish. Why discourage it if there are
by delfinom 7y ago
But at the same time, Microsoft is actually throwing people at the task to maintain it meanwhile Apple is letting them languish. Why discourage it if there are active maintainers?
Are you saying that Linux is also doing it wrong? Python packages often come from distro maintainers and not python devs?
- neuland 7y agoI believe that it's the Python Software Foundation that is controlling the install and maintaining updates. But more broadly speaking, I'm not sure that's going to be enough. Even if you're using virtualenv's, having something installed at the system level means it's shared by all the software you're using. There's bound to be some incompatibility eventually. And then you're stuck waiting for one piece of software to support the latest version of Python. So, you have to keep putting off updates. I think a better solution is to use something to set the python version for each program (ex. pyenv or docker).
- sigzero 7y agoApple is removing them. Good choice I think.
- lalaithion 7y agoYeah, Linux is doing it wrong. I hate that I can't get a new version of python on my machine because the distro maintainers haven't gotten around to it.
- panpanna 7y agoYou can.
- sansnomme 7y agoUpdating and replacing system Python takes tremendous blood and treasure. Compiling python from scratch, updating symlinks, resolving dependency issues and finally debugging the whole thing is no small endeavour. Been there, done that; never again. (This was on a Ubuntu LTS system)
- Godel_unicode 7y agoI've done this dozens of times, didn't seem like that big of a deal? I think the place this might have fallen over is the "updating symlinks" part. Don't replace the system Python, install yours alongside it. They don't need to know anything about each other; aliases in developers profiles and full paths in services/scripts.
- beatgammit 7y agoYup, stick it in /usr/local and place that in your PATH and Python search path before other dependencies. If you want to be fancy, put it somewhere in your home directory so other users on your same machine cannot be affected. It's really not hard. I do this with other compilers and don't really have issues, though I tend to package it up into a container if I'm going to ship it (e.g. build environment for a team, interpretor for a production service, etc).
- ben-schaaf 7y agoOr you could, just like on other platforms and with other languages, use virtual environments with a version manager such as pyenv for your development environment. Combine that with pipenv and you get pretty painless python development. To be fair, some of this stuff is more recent though.
- vesinisa 7y agoHere is an excellent short blog describing all this and how pyenv and pipenv click together to create a virtual Python environment, that is completely independent of your OS vendor's runtime: https://gioele.io/pyenv-pipenv https://gioele.io/pyenv-pipenv This stuff is definitely quite new, and I guess the need for it has risen as a consequence of all the great new features that have shipped in Python during the last few years. I recently had to write an utility script in Python. I chose to use Python 3 and type hints syntax, requiring at least Python 3.6. This was a problem when I realized some of my team use Ubuntu and Debian versions that ship with Python 3.5 (not to speak of Macs with Python 2.x, but these guys use homebrew anyway). Plenty of time was spent researching virtual environments and writing deployment instructions, and I ended up using pip in pyenv (but stopped short of using pipenv, since creating private distributable packages with it seemed convoluted.)
- choeger 7y agoNot only is that completely wrong, there is literally nothing in the package manager that prevents you from installing it exactly the same way that you would do it if you did not know about the package manager at all. Sounds to me like you're simply too lazy to do it and to entitled to recognize the value the package maintainers add to your distro.
- jsight 7y agoThe way Linux package managers have handled multiple versions of runtimes in the past is definitely wrong. There is a lot of work in this area going on now, though. I think RHEL 8's application streams concept is pretty good: https://developers.redhat.com/blog/2019/05/07/what-no-python-in-red-hat-enterprise-linux-8/ https://developers.redhat.com/blog/2019/05/07/what-no-python... Fedora has an analogue to this as well. It seems like a good move in the right direction.
- emidln 7y agoYou can use, today, the same ways that you would force everyone to find/install python (virtualenv, docker, pipenv, conda, whatever is hot this week) in a world without distro-provided python.
- opan 7y agoYou could use Guix or Nix to get a newer version.
- parliament32 7y agoIf you can't figure out "./configure && make && make install" I think you're doing Linux wrong.
- Too 7y agoAnd then halfway through the compilation you find out you are missing fifteen different dev-packages and the only way to figure out which are by googling obscure error messages. Oh, can't find include efglx.h, you obviously have to apt install libstdglx4-dev. (This was probably written deep on some establish build environment-wiki page that's impossible to find but since you are on Ubuntu 18 instead of 14 it wouldn't have worked anyway because now the package has changed name to apt install glx-dev. Besides - they also forgot to list half of the dependencies required on that page). Figuring out how to establish a build environment for any program you want to install really can't be the best way to do things.
- peterwwillis 7y agoDocker solves that. Yeah, you then have to deal with container problems, but it's the best packaging solution we have at the moment. Maybe one day we'll take the lessons learned and natively build them into the OS, but distros are still obsessed with distro-specific kludges that require extra packaging work. We have great universal packaging when it comes from the community at large, but not from single organizations. Pip is a platform-independent package manager! Why don't we have that for Linux software in general? Because each distro already has their own solution, and they won't work together to build a common one.
- bpfrh 7y agoWell there is an effort to solve this with flatpack and snap
- peterwwillis 7y agoBoth of which will be dead in 10 years, the former because it's solely focused on the desktop, latter because it's a vendor initiative not a community one.
- robocat 7y ago> latter because it's a vendor initiative not a community one. You may be right, but I don't think you should be quite so cynical. 18.04 has a ten year Long Term Support, and Ubuntu was first released in 2004.
- Wowfunhappy 7y ago> [Flatpak will be dead in 10 years] because it's solely focused on the desktop By this logic, GNOME should have died a long time ago. Focusing on the desktop makes Flatpak better at managing desktop apps. For servers we have, well, Docker.
- j88439h84 7y agoUse pyenv.
- kevin_thibedeau 7y agoYou just compile your own from source. Python plays nice with older versions of itself. Use Gnu Stow as a secondary package manager to make it easier to remove or replace.
- Barrin92 7y ago> Are you saying that Linux is also doing it wrong? I'd say yes, the coupling of operating system and distribution of software applications has always seemed very wrong to me. Software should run on the operating system which functions as a platform, not be coupled with the operating system. Linux package management essentially works like an app store with the additional burden of maintenance loaded on the distribution owners. I'd be very happy if flatpaks and snaps take off quickly because distribution agnostic up to date software, maintained by the developer, should be the norm.
- Wowfunhappy 7y ago> I'd say yes, the coupling of operating system and distribution of software applications has always seemed very wrong to me. I agree with this in principle, but how far down the chain do you go? Obviously, you need to have some base libraries included. You just need to accept that some of those libraries will be old, and that they aren't going to change so rapidly for this to be a problem.
- afiori 7y agoA nice boundary would be the interoperability layer, libraries and applications needed for application-agnostic protocols are included others are not.