Skip to content
This repository

"pip install -r foo/requirements.txt -e foo" may install versions other than what's in requirements.txt #318

Open
slinkp opened this Issue July 12, 2011 · 0 comments

1 participant

Paul Winkler
Paul Winkler
slinkp commented July 12, 2011

I've observed several times that I get different package versions if I do this::

pip install -r foo/requirements.txt -e foo

... as opposed to this, which installs the versions I expect::

pip install -r foo/requirements.txt
pip install -e foo

As far as I can tell, the problem is that in the one-liner version, we first download (and don't install) everything in requirements.txt, then during the installation of "foo", we install whatever's in its setup.py, which is often not pegged to any particular version, BEFORE installing the stuff we downloaded. That seems backwards to me.

It would be a lot less confusing/surprising if somehow, package foo's setup.py could know about the versions we've already downloaded and are going to install, and not go off finding random versions on pypi. But I don't grok the world of setuptools, I've no idea whether that's possible.

Paul Winkler slinkp referenced this issue in openplans/openblock September 28, 2012
Closed

Document pip / easy_install workarounds #156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.