You are not logged in.

#1 2019-01-04 19:24:13

done_with_fish
Member
Registered: 2014-12-15
Posts: 7

What would happen if I used pip to update an AUR package?

Issuing

pip list --outdated

on my system yields

Package          Version    Latest   Type 
---------------- ---------- -------- -----
binaryornot      0.4.3      0.4.4    wheel
diceware         0.9.5      0.9.6    wheel
ipython          7.1.1      7.2.0    wheel
ipython-genutils 0.1.0      0.2.0    wheel
lxml             4.2.6      4.3.0    wheel
msgpack          0.5.6      0.6.0    wheel
qutebrowser      1.5.0      1.5.2    sdist
whichcraft       0.4.0      0.5.2    wheel
youtube-dl       2018.12.31 2019.1.2 wheel

Most of these packages were installed by me from the AUR.

I'm curious what would happen if I tried to update one of these packages with pip.

For instance, suppose I issued

pip install lxml --upgrade

I originally installed

lxml

from the AUR. Would attempting this upgrade cause any problems?

Offline

#2 2019-01-04 19:52:13

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: What would happen if I used pip to update an AUR package?

I assume pip (called as root) would overwrite files on your filesystem and make a mess.  If you want to use pip to manage stuff, I would not mix it with pacman.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2019-01-04 20:01:03

hcjl
Member
From: berlin
Registered: 2007-06-29
Posts: 330

Re: What would happen if I used pip to update an AUR package?

I would install the pip stuff as a user.

pip install --user ...

Offline

#4 2019-01-04 21:04:55

Potomac
Member
Registered: 2011-12-25
Posts: 526

Re: What would happen if I used pip to update an AUR package?

for a better isolation I suggest to create a virtual environment for python in your home, then activate it and install packages you want with pip inside this virtual environment

https://realpython.com/python-virtual-e … -a-primer/

Offline

#5 2019-01-04 21:06:07

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: What would happen if I used pip to update an AUR package?

Moving to AUR Issues...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2019-01-04 22:18:24

done_with_fish
Member
Registered: 2014-12-15
Posts: 7

Re: What would happen if I used pip to update an AUR package?

Potomac wrote:

for a better isolation I suggest to create a virtual environment for python in your home, then activate it and install packages you want with pip inside this virtual environment

https://realpython.com/python-virtual-e … -a-primer/

In retrospect, this sounds like a good idea. Kotrfa outlines a strategy for doing something similar an an answer to this question:

https://bbs.archlinux.org/viewtopic.php?id=178564

I wonder if anyone has attempted this...

Offline

Board footer

Powered by FluxBB