Skip to content

Pip picks up .egg-info from sub-folders in -e mode #5466

@polwel

Description

@polwel

Environment

  • pip version: 10.0.1
  • Python version: 3.6 (running in a conda env)
  • OS: Windows

Description
When I try to install my own package in -e mode, pip instead tries to install the dependencies of another package in a sub-folder of the current directory.

Pip behaves fine in non-development mode.

Expected behavior
Pip should resolve the correct package obviously.

How to Reproduce
I have a minimal example to demonstrate the issue.

Run pip -e ., and pip will install numpy, instead of mypkg and attrs.

Additional info
It seems that pip picks up an *.egg-info that happens to be located exactly one level below the current directory. It then tries to resolve the dependencies indicated there. In my case, I grabbed the egg-info from pyqtgraph.

My project does not use the usual directory layout (where setup.py is located next to a folder named after the package, containing the source code). I don't see how this would be an issue though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions