You are not logged in.

#1 2012-04-09 00:39:22

maw09
Member
Registered: 2012-02-06
Posts: 9

Better to install PyPI packages using pacman or pip?

In Haskell, I ran into dependency issues when I had xmonad installed using pacman
and other packages installed using cabal.

Might a similar thing happen if I installed some PyPI packages (virtualenv, pymongo)
using pacman instead of pip?

My reason for wanting to install with pacman is that I'd be more likely to keep the
packages up to date - they'd be tied to the rest of my system, and there's no simple
command to upgrade all packages in pip.

Offline

#2 2012-04-09 00:48:30

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: Better to install PyPI packages using pacman or pip?

IMO, you should choose which method works best for you and stick with it.

If you use a 3rd party package manager, you should stick with it.
Or if you use pacman, you should stick with it.

http://sherlock.heroku.com/blog/2012/04 … -managers/
Towards the end I mention I don't really know much about pip and would investigate on how it works.
But as a general rule, I would say to try out the 3rd party package manager first and see if it works.
I would also recommend doing per user installs (install to $HOME) to keep files managed by pacman separated from files installed with the 3rd party package manager.

Cabal and Gem imo are both superior to using packages provided in the supported repositories for the reasons outlined in my blog post.

Hope this helps.

Cheers!

Offline

#3 2012-04-09 01:14:24

tomd123
Developer
Registered: 2008-08-12
Posts: 565

Re: Better to install PyPI packages using pacman or pip?

Ok, so my initial take on pip is that the situation might be better to use pacman for python packages because so many of them are already packaged and maintained.

Your point that pip also doesn't have an upgrade all command is a strong one, but there seems to be workarounds for instance: http://stackoverflow.com/questions/2720 … s-with-pip

Now knowing this info, I will probably stick with pacman for my python needs at least until the pip situation improves and gives more incentive to use it.

Offline

#4 2012-04-09 05:35:39

w0ng
Member
From: Australia
Registered: 2009-06-04
Posts: 88
Website

Re: Better to install PyPI packages using pacman or pip?

pacman/yaourt almost always.
pip only when inside a virtualenv.

I don't want to break dependencies during updates or accidentally sudo pip2 uninstall a site-package that was installed by a makepkg

Last edited by w0ng (2012-04-09 05:38:47)

Offline

#5 2012-04-09 08:09:31

Awebb
Member
Registered: 2010-05-06
Posts: 6,275

Re: Better to install PyPI packages using pacman or pip?

Can't you write a PKGBUILD that installs them with pip? This way you'll have all the files registered with pacman (I don't trust anything I can't find with -Ql or -Qo), but they're installed in a way pip can comprehend as well. The only thing the maintainer would have to do is test new upstream releases and increment the version number in the PKGBUILD. I don't know if this works when building the binary packages (as I don't know how pip stores it's information), but this could be working great for AUR packages.

I don't care about those language specific repositories. Why? Although I had to write lots of code lately, I am not a software developer. I also have lots of space on my hard disk, so I don't think in languages, I think in applications. The last thing I want to do is wonder what language was used to solve whatever task.

Offline

#6 2013-10-24 13:22:25

tapia
Member
Registered: 2013-03-13
Posts: 56

Re: Better to install PyPI packages using pacman or pip?

I have having the same question as Awebb: wouldn't it be possible to install python packages with a PKGBUILD file that uses pip inside? That would be useful.

Offline

#7 2016-12-04 10:34:53

carlsplace
Member
Registered: 2015-11-30
Posts: 1

Re: Better to install PyPI packages using pacman or pip?

I install packages with pacman if aviable.
When using pip, I edited the pip.conf file to make sure the packages installed with pip only affect my home directory.

Offline

#8 2016-12-04 10:45:07

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,788
Website

Re: Better to install PyPI packages using pacman or pip?

Please don't necrobump, carlsplace.

https://wiki.archlinux.org/index.php/Co … bumping.22

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB