pip
pip copied to clipboard
How to pass former --install-option flags via --config-settings since pip 23.1?
Description
I don't know if this is a bug or just a question....
Prior to pip 23.1 (e.g., 23.0.1) I was able to install my custom Python package with C++ extensions successfully on Windows using:
pip install --install-option=build_ext --install-option="--library-dirs=/path/to/library" *.zip
But the --install-option
flag was removed in pip 23.1 via #11858.
So how do I now specify --install-option
flags (such as --library-dirs
) via --config-settings
(or --config-setting
) please?
I also asked this on SO here, but have got no answer yet.
Expected behavior
If this is possible with pip 23.1, please consider expanding on the docs for --config-settings
at https://pip.pypa.io/en/stable/cli/pip_install/#cmdoption-C, or in the Examples section below.
pip version
23.1.2
Python version
3.7, 3.8
OS
Windows
How to Reproduce
- Install pip 23.1 (e.g., in a Python 3.7 or 3.8 virtual environment created with
venv
.) - Try pip install of a source archive on Windows, attempting to pass in any former
--install-option
flag via--config-settings
. E.g.,--library-dirs
or--libraries
.
Output
Successful installation of a Python package from a source archive.
Code of Conduct
- [X] I agree to follow the PSF Code of Conduct.