Message388361
The Debian/Ubuntu packages have a local patch for distutils/setuptools introducing an --install-layout option. Maybe have the same for pip?
The intention with renaming/moving site-packages to /usr/lib/python3/dist-packages is to avoid users damaging their system installation, like
sudo python3 setup.py install
sudo pip install
overriding packages installed with the distro package manager. Just making this schema known, and making it the default would again allow pip acting on packages managed by the distro package manager.
Otoh, there are use cases, where you want to use the Python provided by the Linux distro and run into issues with the custom dist-packages.
- Creating a venv using the system Python probably should use
the versioned site-packages.
- Building on top of a docker image for e.g. a Python App, you
probably want to install into the dist-packages provided by
the system Python.
So the problem to solve is
- let a "sudo pip install" fail by default on the real system
- let the same install succeed in a docker environment, or any
other "image".
- behave transparently on venv and virtualenv installations. |
|
Date |
User |
Action |
Args |
2021-03-09 12:41:48 | doko | set | recipients:
+ doko, christian.heimes, mattip, steve.dower, uranusjr |
2021-03-09 12:41:48 | doko | set | messageid: <1615293708.9.0.687615805205.issue43312@roundup.psfhosted.org> |
2021-03-09 12:41:48 | doko | link | issue43312 messages |
2021-03-09 12:41:48 | doko | create | |
|