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

pip --install-option unexpected behaviour #4338

Closed
golovchd opened this issue Mar 15, 2017 · 1 comment
Closed

pip --install-option unexpected behaviour #4338

golovchd opened this issue Mar 15, 2017 · 1 comment
Labels
auto-locked Outdated issues that have been locked by automation

Comments

@golovchd
Copy link

Description:

--install-option in requirements.txt specified for single package keeps propagated to all packages to be installed after the package with an option. As result, install failing while first run when package with an options not yet installed, but succeed while second run, when it is already installed

What I've run:

pip install -r requirements.txt

requirements.txt:
....
pycrypto==2.6.1
pygraphviz==1.3.1 --install-option="--include-path=/usr/include/graphviz" --install-option="--library-path=/usr/lib/graphviz"
pyOpenSSL==0.15.1
....

Execution output:
.....
Running setup.py install for pygraphviz ... done
Running setup.py install for pyOpenSSL ... error
Complete output from command /home/golovchd/venv/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-Xfe68y/pyOpenSSL/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-RLckG_-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/golovchd/venv/include/site/python2.7/pyOpenSSL --include-path=/usr/include/graphviz --library-path=/usr/lib/graphviz:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help

error: option --include-path not recognized

----------------------------------------

Command "/home/golovchd/venv/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-Xfe68y/pyOpenSSL/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-RLckG_-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/golovchd/venv/include/site/python2.7/pyOpenSSL --include-path=/usr/include/graphviz --library-path=/usr/lib/graphviz" failed with error code 1 in /tmp/pip-build-Xfe68y/pyOpenSSL/

@dstufft
Copy link
Member

dstufft commented Mar 31, 2017

Closing in favor of #3830.

@dstufft dstufft closed this as completed Mar 31, 2017
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 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

2 participants