- 
          
- 
                Notifications
    You must be signed in to change notification settings 
- Fork 1.3k
Open
Description
setuptools version
setuptools == 58.5.3
Python version
Python 3.9
OS
macOS
Additional environment information
No response
Description
When I try to pip install <namespace-package> using attr to determine the value of version I get a failure message.
Expected behavior
The pip install <namespace-package> command works successfully.
How to Reproduce
I have created an example to show this behaviour:
- Clone repo. https://github.com/hsorby/setuptools-issue
- Create virtual environment: python -m venv issue
- Activate: source issue/bin/activate
- cd setuptools-issue
- Install animals.catpackage:pip install animals.cat/
- Install animals.dogpackage:pip install animals.dog/
This will fail because ModuleNotFoundError: No module named 'animals.dog'
If I now uninstall animals.cat: pip uninstall animals.cat and then repeat steps 5. and 6. they will succeed, I'm guessing because something has been leftover from the uninstall?
Output
    File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
    File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
    File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
  ModuleNotFoundError: No module named 'animals.dog'
  ----------------------------------------
Code of Conduct
- I agree to follow the PSF Code of Conduct