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

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

Projects

None yet

7 participants

@morty
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

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

@coderanger coderanger added a commit to balanced/omnibus-balanced that referenced this issue Jan 21, 2014
@coderanger coderanger Workaround for extras not working with .
See also pypa/pip#1236
d6a5ad2
@tomprince

#2000 is a duplicate of this.

@cjerdonek
Contributor

I hit this today, too.

@letmaik
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
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 mrtrumbe added a commit to mrtrumbe/pip that referenced this issue May 14, 2015
@mrtrumbe mrtrumbe Added tests for extras specifications as part of requirement parsing.…
… Breaking tests are in preparation of a fix for #1236.
714a727
@mrtrumbe mrtrumbe added a commit to mrtrumbe/pip that referenced this issue May 14, 2015
@mrtrumbe mrtrumbe Addresses issue #1236. Extras can now be specified on file/directory-…
…like requirement specifications as well as url requirement specifications.
4babf31
@dstufft
Member
dstufft commented May 19, 2015

Fixed in #2785

@dstufft dstufft closed this May 19, 2015
@philtay philtay referenced this issue in marshmallow-code/marshmallow Jul 27, 2015
Merged

setuptools extras #250

@nlevitt nlevitt added a commit to internetarchive/brozzler that referenced this issue Oct 18, 2016
@nlevitt nlevitt 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
7a655da
@ldidry ldidry added a commit to ldidry/pootle that referenced this issue Nov 29, 2016
@ldidry ldidry Update setup_linux.rst
Need `"` around `.[dev]` or it won't work. Well, at least for me, it failed:

```
$ pip install -e .[dev]
zsh: no matches found: .[dev]
```

Seems related to pypa/pip#1236
79cac78
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment