Capital letter in directory name causes pip editable install to fail in Windows
See original GitHub issueDescription
In Windows when the directory name of a Python project, such as a just cloned Git repository, contains a capital letter, installing it with -e
(for editable) will result in a “Succesfullly installed”-message, but it actually failed: in pip list
the package is nowhere to be found. In macOS I’m not having this issue.
With capital letter in directory name
Note that it reported Successfully installed example
but without version number.
All lowercase letters
Expected behavior
No response
pip version
21.1.2
Python version
3.8.10
OS
Windows 10 21.1.2
How to Reproduce
I createda simple repo to reproduce the above example, but you can try it with any other repository as well.
git clone https://github.com/sandertan/Example
cd Example
pip install -e .
As mentioned previously, this only occurs in Windows and not on macOS. I’m using Bash that came with Git, and I also experienced this bug with the default Windows Shell.
Output
No response
Code of Conduct
- I agree to follow the PSF Code of Conduct.
Issue Analytics
- State:
- Created 2 years ago
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Why is pip editable install causing issue with subpackages?
As far as I know, editable installations do not work with changes to the directory structure, as done with package_dir .
Read more >PyPi Package Registry is case sensitive (#244412) - GitLab
Using the latest stable pip ( 20.2.2 ), this makes packages with capital letters impossible to retrieve as pip will make the name...
Read more >How to Publish an Open-Source Python Package to PyPI
First, have a look at the directory structure of reader . The package lives completely inside a directory that can be named anything....
Read more >how do editable pip installs work? (intermediate) anthony ...
today I talk about ` pip install -e .` and how that makes a library live- editable !playlist: ...
Read more >pipenv Documentation - Read the Docs
Generates and checks file hashes for locked dependencies when installing from Pipfile.lock. • Automatically install required Python version when pyenv is ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This doesn’t happen for me:
Could you do
dir %VIRTUAL_ENV%\Lib\site-packages
? I’d expect to see aneasy-install.pth
in there with the location of your example project in it, and anexample.egg-link
file with the Example directory path in it and a line containing “.”This looks like it might be a mingw64 copy of Python, which is fairly heavily patched. Can you reproduce this issue with the standard python.org (or Windows Store) distribution of Python? If you can’t, I’d suggest that you may need to take this up with the mingw project, as it’s likely their port that’s the issue.