Bug#1035546: python3-pip: pip install ignores explicit --prefix=/usr (even with --root)

2023-07-21 Thread Stefano Rivera
Control: forwarded -1 https://github.com/pypa/pip/issues/10978 Hi Martin (2023.05.05_13:03:43_+0200) > I also tried --prefix=/opt which then gets me /opt/local/{bin,lib}. So this > behaviour directly contradicts the --help documentation: ... > So this "/local" thing is both sticky and hard to

Bug#1035546: python3-pip: pip install ignores explicit --prefix=/usr (even with --root)

2023-05-05 Thread Martin Pitt
Hello again, I just locally reverted [1], and it's still the same, so that Debian patch actually isn't to blame. I also tried --prefix=/opt which then gets me /opt/local/{bin,lib}. So this behaviour directly contradicts the --help documentation: > --prefix Installation prefix

Bug#1035546: python3-pip: pip install ignores explicit --prefix=/usr (even with --root)

2023-05-05 Thread Martin Pitt
Hello all, Is that patch even necessary still? In Fedora with python3-pip 2.22.3, `sudo pip install python-dbusmock` installs into /usr/local/lib/python3.11/site-packages/dbusmock/ , i.e. does not conflict with /usr any more. They do have a more targetted protection of /usr [1], but no general

Bug#1035546: python3-pip: pip install ignores explicit --prefix=/usr (even with --root)

2023-05-05 Thread Martin Pitt
Package: python3-pip Version: 23.0.1+dfsg-1 My upstream project (cockpit) is soon going to deliver a new Python component, where it installs a locally built wheel (i.e. some Python packages and auto-generated executable wrappers) with python3 -m pip install --no-index --force-reinstall