Dependency resolution failure with git packages from different sources (editable mode) #10007
Closed
1 task done
Labels
type: bug
A confirmed bug or unintended behavior
Description
Installations from git repositories treat different sources as different versions even when they are the same version. For example, using
pip install -e .
to install a repository in editable mode whose dependencies include this project itself but on github always fail because the local version is considered different to the github version, even when they are the same version.Expected behavior
Pip should treat packages with the same name and same version as being identical, even when they were installed from different sources (particularly relevant here for installation from git repositories).
pip version
21.1.1
Python version
3.8.5
OS
Windows 10
How to Reproduce
Working:
pip install git+https://github.com/neradha/my-package.git
This works because my-package is coming from github in both cases.
Failing:
pip install -e .
in that directoryPip installs the package from the local source, it follows the dependencies to install https://github.com/neradha/my-other-package which itself relies on my-package. This dependency specifies github which causes the resolver to fail.
Output
Code of Conduct
The text was updated successfully, but these errors were encountered: