News for hackers. Stuff that matters.
Re:Debian discusses vendoring again by pydry on Wednesday January 13, 2021 @05:59AM (#25760522)
This is simple but completely counterintuitive. I've seen it go wrong hundreds of times and has been subject to a bunch of different workarounds (e.g. pipx).

Debian should probably ship a separate global python environment for Debian packages that depend on python where it is managing the environment - one with a different name (e.g. debpy), a different folder and, preferably, without pip even being available so that it's unlikely people will accidentally mess with it.

This could have isolated the python 2 mess they had for years also, de coupling the upgrade of the "python" package from the upgrade of all the various Debian things that depended on python 2.

really, it's easier to make "apt install python" be the way to install python "on the side".

Re:Debian discusses vendoring again by viraptor on Wednesday January 13, 2021 @06:12AM (#25760632)
> without pip even being available so that it's unlikely people will accidentally mess with it.

This has already happened. It only resulted in lots of "ubuntu broke pip" posts rather than understanding why that happened. (the fact it's not entirely separate from venvs didn't help) But considering that issue, imagine what would happen for people running `apt install python` and not being able to run `python` or `virtualenv`. Most setup guides just wouldn't apply to debian/ubuntu and they can't afford that.

Re:Debian discusses vendoring again by pydry on Wednesday January 13, 2021 @06:48AM (#25760896)
Yeah, of course it did! That's why my primary suggested fix wasn't "just removing pip" but hiving the Debian managed python environment off somewhere different and calling it something else and with different binary names (e.g. debsyspython) that debian package authors could rely upon.

Then the default "python" and "pip" could be without debian dependencies and users could go wild doing whatever the hell they want without messing up anything else in the debian dependency tree (like they would with pyenv or conda).

Re:Debian discusses vendoring again by uranusjr on Wednesday January 13, 2021 @09:12AM (#25762125)
I don’t have much to add but Python maintainers have been suggesting solutions like this for years, and IIUC Red Hat distros use a similar approach you described. Debian devs refuse to bulge, like they always do on many topics, for better or worse. They are not going to do it, not because your approach is technically wrong, but does not fit their idea of system packaging.
Re:Debian discusses vendoring again by toyg on Wednesday January 13, 2021 @07:39AM (#25761257)
This was probably considered and discarded because altering all references in all packages would be a ton of work, and bound to produce issues with every single merge.
Re:Debian discusses vendoring again by pydry on Wednesday January 13, 2021 @09:13AM (#25762140)
If it's truly an unmanageable amount of work that's a sign that there are other bugs/problems lurking that need fixing.

If they did consider it and reject it I imagine it is more likely it was about avoiding backwards compatibility issues than the amount of work.

This would also signal that there are deeper bugs lurking that need fixing, however.