You are not logged in.

#1 2024-05-15 12:09:01

Jphillips
Member
Registered: 2019-08-23
Posts: 68

Installing non-repo Python package for all users

What is the best way to install a non-repo package for all users on a centrally managed Arch installation? I'm trying to avoid each user having to manage their own virtual environments, and ideally I'd prefer not to use the AUR as much as possible.

Are there other (good) ways to do this, besides using the --break-system-packages flag?

Offline

#2 2024-05-15 12:21:38

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,006

Re: Installing non-repo Python package for all users

Make your own PKGBUILD or use the AUR if it's already present there. That's what system package managers are there for.

Offline

#3 2024-05-15 12:58:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,322
Website

Re: Installing non-repo Python package for all users

Jphillips wrote:

ideally I'd prefer not to use the AUR as much as possible.

Why??  Building a package from a PKGBUILD is precisely what you should do to meet your goals.

If someone else already wrote such a PKGBUILD, why would you not want to benefit from their effort?  Don't reinvent the wheel.


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

Online

#4 2024-05-15 13:20:10

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,644

Re: Installing non-repo Python package for all users

As mentioned PKGBUILD is the best way to do it. Pacman then takes note of it and if you decide later on to uninstall then pacman will give it a good clean (of course not the config files in your home folder).

Offline

Board footer

Powered by FluxBB