Installing package as root to a system directory
Loris Bennett
loris.bennett at fu-berlin.de
Thu Sep 28 03:31:31 EDT 2023
Hi,
I use poetry to develop system software packages as a normal user. To
install the packages I use, again as a normal user
export PYTHONUSERBASE=/some/path
pip3 install --user somepackage.whl
and add /some/path to
/usr/lib64/python3.6/site-packages/zedat.pth
This works well enough, but seems to me to be a little clunky, mainly
because the files don't then belong to root. The most correct way, in
my case, would probably be to create an RPM out of the Python package,
but that seems like it would be too much overhead.
What other approaches to people use?
Cheers,
Loris
--
This signature is currently under constuction.
More information about the Python-list
mailing list