Pip install -e overwrites easy-install.pth

I have two packages and virtualenv. And I'm trying to install both of them in this virtualenv in editable mode, it means "python setup.py develop" or "pip install -e". This procedure usually leads to three things:

  • The actual package path is added as venv / lib / python2.7 / site-packages / package.egg-link
  • The same path is also added to venv / lib / python2.7 / site-packages / easy-install.pth
  • package.egg-info with metadata material is created in the working dir package

So, I have a problem with step 2. Depending on the installation order, if I install package A first and package B second (using the same pip install -e), everything works, and both paths are in install.pth . But otherwise, if I install package B first and the second install the second, the second will overwrite easy-install.pth , and there is only one way - B.

Packets A and B have no dependencies on each other. What is a pip problem?

+4
source share

Source: https://habr.com/ru/post/1547173/


All Articles