You are not logged in.

#1 2021-12-17 03:16:20

enumeler
Member
Registered: 2021-01-26
Posts: 2

I think it is better if pacman does not handle python dependencies

I have used Arch for 2+ years and one thing I have noticed alot was how alot of times, python based programs were the ones that crashed after the update. When I investigated, it was mostly because the python dependencies were being upgraded causing incompatibility.


Python already has a great package manager called 'pip' right? And PyPI, the source for pip maintains all the versions of packages. Why not just have the maintainers only use pip with the specific version of the package rather than trying to install python dependencies with pacman? Maby remove all the python-* packages entirely?


An end user does not necessarily think about using venv and things like that, so I think maintainers can implement a shell script that gets executed when the user launches the python program that sets up everything before launching the program rather than launching the program itsef directly. Because again, different programs require different versions of libraries and it is better to use venv for that.


Please dont kill me if what I said here is wrong


Social Media and GPG key

Note that email provided in the above link is just for the sake of having one and that I do not check it regularly. Right now, the only account I am active on is Reddit.

Offline

#2 2021-12-17 03:51:49

Trilby
Banned
Registered: 2011-11-29
Posts: 30,330
Website

Re: I think it is better if pacman does not handle python dependencies

enumeler wrote:

... python based programs were the ones that crashed after the update. When I investigated, it was mostly because the python dependencies were being upgraded causing incompatibility.

No, it was because you were using repo packages for dependencies but manually installing some "programs" with pip.  Either that or you were doing partial upgrades.  Neither are supported, and each would be on you.

enumeler wrote:

Maby remove all the python-* packages entirely?

Feel free to remove them all from your system and just use pip.  This sounds like a complete PITA to me, but you are free to do so.  Why would you want to make everyone else to do this though?  No one is making you install repo python-* packages.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2021-12-17 04:04:51

loqs
Member
Registered: 2014-03-06
Posts: 17,990

Re: I think it is better if pacman does not handle python dependencies

Trilby wrote:

No, it was because you were using repo packages for dependencies but manually installing some "programs" with pip.  Either that or you were doing partial upgrades.  Neither are supported, and each would be on you.

Sometimes it does happen with repo packages https://bugs.archlinux.org/task/70918 or https://bugs.archlinux.org/task/72480

Offline

#4 2021-12-17 05:48:44

ayekat
Member
Registered: 2011-01-17
Posts: 1,608

Re: I think it is better if pacman does not handle python dependencies

enumeler wrote:

Maby remove all the python-* packages entirely?

So would you also remove everything that's been written in Python from the repos? Or just anything written in Python that depends on some python-… package? Or how do you expect dependencies to be tracked, if not by pacman?


pkgshackscfgblag

Offline

#5 2021-12-17 09:26:18

seth
Member
Registered: 2012-09-03
Posts: 58,175

Re: I think it is better if pacman does not handle python dependencies

enumeler wrote:

An end user does not necessarily think about using venv and things like that

Errheeemm… "An end user"…  so we're projecting again?
tongue
If you didn't screw some PIP packages into the system paths the most likely cause is you updated python but forgot to rebuild a bunch of AUR packages?

ayekat wrote:

So would you also remove everything that's been written in Python from the repos?

I guess his idea would rather amount to the python leaf packages' post-install scripts resolving their dependencies w/ pip - though I guess at this point all packages currently depending on some python-* package would simply have to move to the AUR because of the external dependencies.
Of course nothing would prevent one from adding such packages to the AUR itfp.

Offline

#6 2021-12-17 11:47:16

icar
Member
From: Catalunya
Registered: 2020-07-31
Posts: 502

Re: I think it is better if pacman does not handle python dependencies

If you are missing a python package that is only available through pip, you could install it on your home folder and add the corresponding path to your $PATH. Or, if you care very much, writing a PKGBUILD is quite easy.

Offline

#7 2021-12-17 12:13:23

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: I think it is better if pacman does not handle python dependencies

enumeler wrote:

Please dont kill me if what I said here is wrong

It's not worthy of a capital punishment, just a light beating.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#8 2021-12-17 12:56:48

ugjka
Member
From: Latvia
Registered: 2014-04-01
Posts: 1,860
Website

Re: I think it is better if pacman does not handle python dependencies

icar wrote:

If you are missing a python package that is only available through pip, you could install it on your home folder and add the corresponding path to your $PATH. Or, if you care very much, writing a PKGBUILD is quite easy.

I always do "pip install --user" when I can't be bothered with pacman


https://ugjka.net
paru > yay | vesktop > discord
pacman -S spotify-launcher
mount /dev/disk/by-...

Offline

#9 2021-12-17 14:25:16

Trilby
Banned
Registered: 2011-11-29
Posts: 30,330
Website

Re: I think it is better if pacman does not handle python dependencies

loqs wrote:

Sometimes it does happen with repo packages ...

Sure, but packaging bugs can happen with non-python packages too.  That doesn't mean nothing should be packaged.  And a couple examples of packaging bugs does not imply that this happens a lot, and it certainly doesn't imply that it happens alot.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#10 2021-12-17 14:31:11

seth
Member
Registered: 2012-09-03
Posts: 58,175

Re: I think it is better if pacman does not handle python dependencies

What means we're all having a half-serious debate on the base of innuendo and so create a fictional context for our comments.
e.f.q.

Offline

Board footer

Powered by FluxBB