python-pip >= 21.3.1+dfsg-3 fails pip3-root.sh autopkgtest with python3.10
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
automake-1.16 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
dh-python (Ubuntu) |
Fix Released
|
Undecided
|
Stefano Rivera | ||
python-pip (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
python3.10 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
pip3-root.sh expects world package to be installed in /usr/local/
It even fails to uninstall the package right after installing it:
ubuntu@
Collecting world
Using cached world-4.
Collecting atpublic
Using cached atpublic-
Installing collected packages: atpublic, world
Successfully installed atpublic-3.0.1 world-4.1.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https:/
ubuntu@
WARNING: Skipping world as it is not installed.
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https:/
summary: |
- python-pip >= 21.3.1+dfsg-3 fails pip3-root.sh autopkgtest + python-pip >= 21.3.1+dfsg-3 fails pip3-root.sh autopkgtest with + python3.10 |
Changed in dh-python (Ubuntu): | |
status: | New → In Progress |
assignee: | nobody → Stefano Rivera (stefanor) |
As I understand it, this is because pip expects the installation layouts in sysconfig to be correct since Python 3.10. Previously it used the layouts in distutils. sysconfig.
See: /github. com/pypa/ pip/pull/ 10358
* LP: #1940705
* LP: #1408092
* https:/
The correct resolution here is to enable sysconfig- debian- schemes. diff in Python 3.10. I'm not sure why this hasn't been enabled, yet.