Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-r req.txt requirement reinstalled: case-sensitivity / .tgz #239

Closed
ejucovy opened this issue Mar 22, 2011 · 1 comment
Closed

-r req.txt requirement reinstalled: case-sensitivity / .tgz #239

ejucovy opened this issue Mar 22, 2011 · 1 comment
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@ejucovy
Copy link

ejucovy commented Mar 22, 2011

The setup:

  • I have a local .tar.gz of package "A" at version 0.5

  • Package "B" depends on package "A" (unpinned) but with incorrect case: install_requires=["a"] instead of install_requires=["A"]

  • I'm installing "A" from my local .tar.gz, and "B" from PyPI

    pip install -r req.txt

req.txt looks like
./A-0.5.tar.gz
B

Expected result: B is installed from its latest PyPI release. A is installed at version 0.5 from my .tar.gz file.

Actual result: A is installed from its latest PyPI release as well. Pip unpacks A-0.5.tar.gz first; then downloads/unpacks B from PyPI; and then searches PyPI for "a", downloads/unpacks the latest release, and installs that instead of A-0.5.tar.gz

Example in the wild:
wget http://media.djangoproject.com/releases/1.0.4/Django-1.0.4.tar.gz
echo "./Django-1.0.4.tar.gz
> django-paging==0.2.3" > req.txt
pip install -r req.txt

The resulting environment will have Django installed from its latest PyPI release (currently 1.2.5) instead of 1.0.4 from the tarball.

Note that django-paging's setup.py incorrectly lists "django" instead of "Django" in its install_requires (https://github.com/dcramer/django-paging/blob/master/setup.py#L12) -- the bug doesn't occur if that is corrected.

The bug also doesn't occur if I modify req.txt to install django-paging from a local tarball, or to install Django 1.0.4 from PyPI.

@qwcode
Copy link
Contributor

qwcode commented Feb 28, 2013

fixed in #724

@qwcode qwcode closed this as completed Feb 28, 2013
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 6, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

2 participants