--install-option bleeds to next dependency in requiremets.txt
See original GitHub issue- Pip version: 9.0.1
- Python version: 2.7.13
- Operating system: MacOS
Description:
Try to add --install-option to a dependency inside requirements.txt
What I’ve run:
Current requirements file:
chromedriver_installer==0.0.6 --install-option='--chromedriver-version=2.29'
pyperclip~=1.5.27
pip install -r requirements.txt output:
$ pip install -r regression/requirements.txt
/usr/local/lib/python2.7/site-packages/pip/req/req_file.py:150: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
cmdoptions.check_install_build_global(options, opts)
Collecting chromedriver_installer==0.0.6 (from -r regression/requirements.txt (line 1))
Using cached chromedriver_installer-0.0.6.tar.gz
Collecting pyperclip~=1.5.27 (from -r regression/requirements.txt (line 2))
Using cached pyperclip-1.5.27.zip
Skipping bdist_wheel for chromedriver-installer, due to binaries being disabled for it.
Skipping bdist_wheel for pyperclip, due to binaries being disabled for it.
Installing collected packages: chromedriver-installer, pyperclip
Running setup.py install for chromedriver-installer ... done
Running setup.py install for pyperclip ... error
Complete output from command /usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/bs/pdhjk2153v7c4gnrmphrf9tc0000gn/T/pip-build-wn0baT/pyperclip/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/bs/pdhjk2153v7c4gnrmphrf9tc0000gn/T/pip-ZGpYhV-record/install-record.txt --single-version-externally-managed --compile --chromedriver-version=2.29:
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 --chromedriver-version not recognized
----------------------------------------
Command "/usr/local/opt/python/bin/python2.7 -u -c "import setuptools, tokenize;__file__='/private/var/folders/bs/pdhjk2153v7c4gnrmphrf9tc0000gn/T/pip-build-wn0baT/pyperclip/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/bs/pdhjk2153v7c4gnrmphrf9tc0000gn/T/pip-ZGpYhV-record/install-record.txt --single-version-externally-managed --compile --chromedriver-version=2.29" failed with error code 1 in /private/var/folders/bs/pdhjk2153v7c4gnrmphrf9tc0000gn/T/pip-build-wn0baT/pyperclip/
If I change the file to:
pyperclip~=1.5.27
chromedriver_installer==0.0.6 --install-option='--chromedriver-version=2.29'
Output:
$ pip install -r regression/requirements.txt
/usr/local/lib/python2.7/site-packages/pip/req/req_file.py:150: UserWarning: Disabling all use of wheels due to the use of --build-options / --global-options / --install-options.
cmdoptions.check_install_build_global(options, opts)
Collecting pyperclip~=1.5.27 (from -r regression/requirements.txt (line 1))
Using cached pyperclip-1.5.27.zip
Collecting chromedriver_installer==0.0.6 (from -r regression/requirements.txt (line 2))
Using cached chromedriver_installer-0.0.6.tar.gz
Skipping bdist_wheel for pyperclip, due to binaries being disabled for it.
Skipping bdist_wheel for chromedriver-installer, due to binaries being disabled for it.
Installing collected packages: pyperclip, chromedriver-installer
Running setup.py install for pyperclip ... done
Running setup.py install for chromedriver-installer ... done
Successfully installed chromedriver-installer-0.0.6 pyperclip-1.5.27
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:7 (2 by maintainers)
Top Results From Across the Web
How to use requirements.txt to install all dependencies in a ...
1 from requirements.txt; Try to install with sudo apt-get install python-matplotlib; Run pip install -r requirements.txt (Python ...
Read more >Advanced Usage - Bleeding edge dependency testing ...
This feature will update the --requirements argument file (default requirements. txt ) with the upgraded packages from your last test environment if the...
Read more >Manage dependencies using requirements.txt | IntelliJ IDEA ...
From the Tools menu, select Sync Python Requirements. · In the opened dialog, specify the name of the requirements file. · Select the...
Read more >Installing the development version of scikit-learn
This section introduces how to install the main branch of scikit-learn. This can be done by either installing a nightly build or building...
Read more >mayavi 4.8.1 documentation » Installation - Enthought Tool Suite
By itself Mayavi is not a difficult package to install but its dependencies are unfortunately rather heavy. Fortunately, many of these ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Another problem: it disallows usage of wheels for all packages.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.