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

wheels prevent extras_require installs from working #3032

Closed
kmike opened this issue Aug 17, 2015 · 8 comments
Closed

wheels prevent extras_require installs from working #3032

kmike opened this issue Aug 17, 2015 · 8 comments
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@kmike
Copy link

kmike commented Aug 17, 2015

This issue is similar to #1885, so I copy-pasted its title :)

In Python 3.4 and 2.7 virtual environments pip install formasaurus[with-deps] only installs packages from install_requires, not from extras_require['with-deps'].

pip install --no-use-wheel formasaurus[with-deps] tries to install all packages.

The example from #1885 works for me (pip install ipython[test] installs nose).

setup.py file: https://github.com/TeamHG-Memex/Formasaurus/blob/70aa88a50dbc3edf702e31b763ca944ba0995d13/setup.py

I'm using pip 7.1.0.

@rbtcollins
Copy link

so pip is detecting the extra properly. Not sure why its not evaluating them correctly.

@sigmavirus24
Copy link
Member

@kmike what version(s) of setuptools are you using?

@kmike
Copy link
Author

kmike commented Aug 18, 2015

@sigmavirus24 setuptools 18.0.1 installed with virtualenv.

@lopuhin
Copy link

lopuhin commented Apr 8, 2016

Additional case when extras_require do not work as expected is pip install git+https://github.com/TeamHG-Memex/Formasaurus.git@72dc572#egg=Formasaurus[with-deps].

In both cases the problem seems to be with handling of - in with-deps: it seems to be replaced with _ somewhere. Installation of the annotation feature from the same package works fine in both cases.

lopuhin added a commit to lopuhin/Formasaurus that referenced this issue Apr 18, 2016
Work around pypa/pip#3032:
add the same extras with and without dash.
lopuhin added a commit to lopuhin/Formasaurus that referenced this issue Apr 18, 2016
Work around pypa/pip#3032:
add the same extras with and without dash.
@kmike
Copy link
Author

kmike commented Nov 7, 2016

I wonder if it is related to pypa/setuptools#732.

@xavfernandez
Copy link
Member

Do you still have the issue with pip 9.0.1?

@lopuhin
Copy link

lopuhin commented Nov 7, 2016

I think the issue is resolved: both pip install git+https://github.com/TeamHG-Memex/Formasaurus.git@72dc572#egg=Formasaurus[with-deps] and pip install formasaurus[with-deps]==0.7.1 now install requirements from with-deps.

@xavfernandez
Copy link
Member

Great :)
(Likely fixed by e53e224)

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

5 participants