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

--install-options in requirements.txt are being applied to the wrong packages #5795

Closed
MarkBird opened this issue Sep 18, 2018 · 2 comments
Closed
Labels
auto-locked Outdated issues that have been locked by automation C: requirement file Using `requirements.txt` state: needs discussion This needs some more discussion

Comments

@MarkBird
Copy link

Environment

  • pip version: 18.0
  • Python version: 3.6
  • OS: Windows 10

Description
I have the following in requirements.txt:

django-pyodbc-azure==1.11.12.1
rcssmin==1.0.6 --install-option="--without-c-extensions"
rjsmin==1.0.12 --install-option="--without-c-extensions"

on pip 18.0, this will not install, because the django-pyodbc-azure line fails with "Could not find a version that satisfies the requirement"

If I remove the 2 packages with the --install-options options, then django-pyodbc-azure installs fine straight away. I can then restore the 2 packages with --install-options and they install fine as well.

Expected behavior
--install-options should only apply to the line in requirements.txt with the option, not to other lines

How to Reproduce
See description

@chrahunt
Copy link
Member

The specific problem here is that:

  1. django-pyodbc-azure only publishes wheels
  2. Any usage of --install-options within a requirements file disables the use of wheels

So this is essentially the same issue as #4118, just with a different option. Like that one, this is related to #2677.

@chrahunt chrahunt added the state: needs discussion This needs some more discussion label Aug 31, 2019
@triage-new-issues triage-new-issues bot removed the S: needs triage Issues/PRs that need to be triaged label Aug 31, 2019
@pradyunsg
Copy link
Member

Closing as a duplicate of #4118.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 24, 2020
@lock lock bot locked as resolved and limited conversation to collaborators Jun 24, 2020
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 C: requirement file Using `requirements.txt` state: needs discussion This needs some more discussion
Projects
None yet
Development

No branches or pull requests

3 participants