-
Notifications
You must be signed in to change notification settings - Fork 3k
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
How to pass former --install-option flags via --config-settings since pip 23.1? #12010
Comments
I should have said this doesn't work for example: The Windows linker, link.exe, complains it can't find the library I'm trying to link to as there is no /LIBPATH entry for /path/to/lib, unlike when I used pip < 23.1. |
You should probably ask in the setuptools tracker, as it's up to them how they map config settings to the legacy options. |
Thanks. I've added a comment at pypa/setuptools#3654. However my CI/CD build pipeline broke when pip upgraded from 23.0.1 to 23.1; setuptools was 47.1.0 in both cases. I'm not a Python packaging expert so I don't know how the tools relate to each other really. From my point of view, things simply stopped working when pip upgraded to 23.1: |
That's probably because pip stopped falling back to running
As a result, pip will be asking setuptools (via the PEP 517 interface) to build a wheel, and an install option doesn't make much sense when building a wheel. So you'll need to look at what you're trying to achieve, and work out how to achieve that when building a wheel. |
Ok, thanks, that makes more sense now. I didn't know it tried to build a wheel first, but I see that in the pip output now. So it sounds like I should be using something like: |
Getting similar issues. Here. uv pip install still passes these through. Edit.. Seems to be working again with 24. So sorry for the noise. |
|
I can't for the life of me figure out the correct syntax. I can do a
None of these variations have had any effect on the linker line that gets run (I need It's confusing, there are many references to |
You should probably ask on the setuptools tracker. Pip does very little here except pass what you supply to setuptools. I think the problem is the fact that it's not obvious what config settings setuptools uses in place of the old |
How does Pip "pass" it though? In this case I know that a single |
If you say It’s up to setuptools how they interpret that. |
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
venv
.)--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
The text was updated successfully, but these errors were encountered: