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

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

Closed
morty opened this issue Oct 18, 2013 · 6 comments

Comments

@morty
Copy link

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

This comment has been minimized.

Copy link

commented Jan 21, 2014

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

This comment has been minimized.

Copy link

commented Aug 28, 2014

#2000 is a duplicate of this.

@cjerdonek

This comment has been minimized.

Copy link
Member

commented Oct 3, 2014

I hit this today, too.

@letmaik

This comment has been minimized.

Copy link

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

This comment has been minimized.

Copy link

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

Addresses issue pypa#1236. Extras can now be specified on file/direct…
…ory-like requirement specifications as well as url requirement specifications.

dstufft added a commit that referenced this issue May 19, 2015

@dstufft

This comment has been minimized.

Copy link
Member

commented May 19, 2015

Fixed in #2785

@dstufft dstufft closed this May 19, 2015

nlevitt added a commit to internetarchive/brozzler that referenced this issue Oct 18, 2016

try to fix error from pip install with extras (pip install file:///..…
….brozzler[webconsole]) by including #egg=brozzler as suggested at pypa/pip#1236 (comment) , travis-ci error can be seen at https://travis-ci.org/internetarchive/brozzler/builds/168727451

@lock lock bot added the S: auto-locked label Jun 4, 2019

@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2019

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
7 participants
You can’t perform that action at this time.