Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Different version behavior with requirements file vs command-line version specification #145

Closed
vbabiy opened this Issue Mar 15, 2011 · 1 comment

Comments

Projects
None yet
2 participants
Contributor

vbabiy commented Mar 15, 2011

Observe:

#!shell

carljm@arugula:~$ virtualenv ve
New python executable in ve/bin/python
Installing setuptools............done.
carljm@arugula:~$ ./ve/bin/pip --version
pip 0.6.3 from /home/carljm/ve/lib/python2.6/site-packages/pip-0.6.3-py2.6.egg (python 2.6)
carljm@arugula:~$ ./ve/bin/pip install Django==1.0.1
Downloading/unpacking Django==1.0.1
  Using download cache from /home/carljm/.pip-cache/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FD%2FDjango%2FDjango-1.0.1%2520beta%25201.tar.gz
  Running setup.py egg_info for package Django
Installing collected packages: Django
  Running setup.py install for Django
    changing mode of build/scripts-2.6/django-admin.py from 664 to 775
    changing mode of /home/carljm/ve/bin/django-admin.py to 775
Successfully installed Django
carljm@arugula:~$ virtualenv ve2
New python executable in ve2/bin/python
Installing setuptools............done.
carljm@arugula:~$ ./ve2/bin/pip --version
pip 0.6.3 from /home/carljm/ve2/lib/python2.6/site-packages/pip-0.6.3-py2.6.egg (python 2.6)
carljm@arugula:~$ cat reqs.txt 
Django==1.0.1
carljm@arugula:~$ ./ve2/bin/pip install -r reqs.txt 
Downloading/unpacking Django==1.0.1 (from -r reqs.txt (line 1))
  Using download cache from /home/carljm/.pip-cache/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FD%2FDjango%2FDjango-1.0.1%2520beta%25201.tar.gz
  Running setup.py egg_info for package Django
  Source in ./ve2/build/Django has the version 1.0.1.beta.1, which does not match the requirement Django==1.0.1 (from -r reqs.txt (line 1))
Source in ./ve2/build/Django has version 1.0.1.beta.1 that conflicts with Django==1.0.1 (from -r reqs.txt (line 1))
Storing complete log in ./pip-log.txt

With the exact same specification ("Django==1.0.1"), pip succeeds if it's specified on the command line and fails if it's specified in a requirements file.


Owner

dstufft commented Dec 14, 2014

This should be fixed already.

@dstufft dstufft closed this Dec 14, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment