Skip to content

Cannot request optional extras when installing from local repo (unless editable is used) #1236

New issue

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

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

Already on GitHub? # to your account

Closed
morty opened this issue Oct 18, 2013 · 6 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@morty
Copy link

morty commented Oct 18, 2013

This works:

pip install messytables[pdf]

So does this when in a checkout of the messytables source:

pip install --editable ".[pdf]"

But this does not work:

pip install ".[pdf]"
@coderanger
Copy link

Workaround is to give a full URI like file:///home/you/src/foo#egg=foo[bar,baz],

coderanger added a commit to balanced/omnibus-balanced that referenced this issue Jan 21, 2014
@tomprince
Copy link

#2000 is a duplicate of this.

@cjerdonek
Copy link
Member

I hit this today, too.

@letmaik
Copy link

letmaik commented Dec 12, 2014

Quite annoying. In travis I wanted to do this:

  - python setup.py sdist
  - pip install dist/*.tar.gz[cdf,netcdf]

But it failed with:

  File "/home/travis/miniconda/envs/test/lib/python2.7/site-packages/pip/_vendor/pkg_resources.py", line 2573, in scan_list
    raise ValueError("Expected "+item_name+" in",line,"at",line[p:])
ValueError: ('Expected version spec in', 'dist/*.tar.gz[cdf,netcdf]', 'at', '/*.tar.gz[cdf,netcdf]')

@rbu
Copy link

rbu commented Mar 12, 2015

Got bitten by this today. For completeness, this is the error you get:

$ pip install .[testing]
Collecting .[testing]

  Could not find any downloads that satisfy the requirement .[testing]
  No distributions at all found for .[testing]

ref https://travis-ci.org/rbu/pyramid_scheme/jobs/54135606

mrtrumbe added a commit to mrtrumbe/pip that referenced this issue May 14, 2015
mrtrumbe added a commit to mrtrumbe/pip that referenced this issue May 14, 2015
…ory-like requirement specifications as well as url requirement specifications.
dstufft added a commit that referenced this issue May 19, 2015
@dstufft
Copy link
Member

dstufft commented May 19, 2015

Fixed in #2785

@dstufft dstufft closed this as completed May 19, 2015
nlevitt added a commit to internetarchive/brozzler that referenced this issue Oct 18, 2016
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 4, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

No branches or pull requests

7 participants