#[Solved] Python package problems

24 messages · Page 1 of 1 (latest)

reef sapphire
#

Howdy! Trying to install aws-adfs via pacman. My python version is 3.11 (installed via pacman), but the aws-adfs package ends up in /usr/lib/python-3.10/site-packages, and then doesn't work.
I had to install python-pip and then trying to use the --break-system-packages switch, but wondering if there's a better option?

latent sage
#

reinstall aws-adfs in yay/paru with --aur option

reef sapphire
#

Same, installed with yay -S --aur aws-adfs

latent sage
#

yes, and do that again

#

that's what you gotta do with aur python packages when python on arch updates

reef sapphire
#

Did that again, and got same issue

latent sage
#

oh yeah

do that again with --rebuild=all option

#

at least with paru, idk yay flags

reef sapphire
#

same with yay. Doesn't complain about --rebuild=all. But maybe it's not supported

latent sage
#

so
paru -S --rebuild=all aws-adfs

#

see the help page
anyways, rebuilding the aur package will put it to /python-3.11/site-packages

reef sapphire
#

ah, ok. can I clear the build so that it rebuilds that way somehow?

#

(installing paru now)

latent sage
#

some kind of rebuild flag should do

#

idk how yay does rebuild flags
so just read the man page and the --help page

#

anyways, note that you'll have to do this for every aur python packages (rebuild) whenever arch repo updates arch version

reef sapphire
#

oh dear 🙂

latent sage
#

such is how aur works

#

you can make a script that automates this of course

#

i do :v

reef sapphire
#

yeah, might make sense. Or learn venv

#

$ aws-adfs
Usage: aws-adfs [OPTIONS] COMMAND [ARGS]...

Thanks a bunch!

#

[Solved] Python package problems

latent sage
#
paru -Qml | grep /lib/python | awk '{print $1}' | sort | uniq | paru -S --rebuild=all -

this should work as a script btw