pip editable modules incorrectly installed when setuptools>=60.0.0
#11189
Labels
resolution: wrong project
Should be reported elsewhere
setuptools>=60.0.0
#11189
Description
Hi all,
I found a bug in Ubuntu 20.04 related to pip and setuptools.
When you pip install a Python module in Ubuntu 20.04 in editable mode (
-e
flag), the module is not listed in pip.When the module is installed normally (no
-e
flag), everything works as usual, and pip finds the module.This happens because depending on the setuptools version, the module is installed at a different path (and thus not found in the PYTHONPATH in some cases):
setuptools 45.2.0
works fineModule installation path:
/usr/local/lib/python3.8/dist-packages/
setuptools 62.4.0
breaksModule installation path:
/usr/lib/python3.8/site-packages/
The last working version is
setuptools==59.8.0
. Starting fromsetuptools==60.0.0
it breaks.Expected behavior
The module should be correctly installed and listed.
pip version
22.1.2
Python version
3.8.10
OS
Ubuntu 20.04
How to Reproduce
I attach a minimal Dockerfile to reproduce the issue.
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: