mirror of
https://github.com/SELinuxProject/selinux
synced 2025-01-06 21:49:55 +00:00
daf687247a
When the python bindings are installed to a destdir with pip install --prefix= --root=, pip tries to uninstall the existing root-owned package and fails Fixes: running build_ext python3 -m pip install --prefix=/usr `test -n "/tmp/selinux-release//build-master" && echo --root /tmp/selinux-release//build-master` . Processing /tmp/selinux-release/selinux-master/libselinux/src Preparing metadata (setup.py) ... done Building wheels for collected packages: selinux Building wheel for selinux (setup.py) ... done Created wheel for selinux: filename=selinux-3.4-cp310-cp310-linux_x86_64.whl size=725511 sha256=b35e9cdb2a6efce389eeece45446826b4ac6b41f81fdc128893f947036f27e8e Stored in directory: /tmp/pip-ephem-wheel-cache-kemjh99e/wheels/ca/2d/1e/d1ab52426d9add92931471cfa0d2558bcbeed89084af2388c9 Successfully built selinux Installing collected packages: selinux Attempting uninstall: selinux Found existing installation: selinux 3.4 Uninstalling selinux-3.4: ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: '__init__.cpython-310.pyc' Consider using the `--user` option or check the permissions. Signed-off-by: Jason Zaman <jason@perfinion.com> Acked-by: Petr Lautrbach <lautrbach@redhat.com> |
||
---|---|---|
.. | ||
include | ||
man | ||
src | ||
utils | ||
LICENSE | ||
Makefile | ||
VERSION |