-
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
Remove deprecated --install-option
#11858
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,7 +109,6 @@ and two {ref}`--find-links <install_--find-links>` locations: | |
|
||
The options which can be applied to individual requirements are: | ||
|
||
- {ref}`--install-option <install_--install-option>` | ||
- {ref}`--global-option <install_--global-option>` | ||
- {ref}`--config-settings <install_--config-settings>` | ||
- `--hash` (for {ref}`Hash-checking mode`) | ||
|
@@ -161,7 +160,7 @@ This disables the use of wheels (cached or otherwise). This could mean that buil | |
This mechanism is only preserved for backwards compatibility and should be considered deprecated. A future release of pip may drop these options. | ||
``` | ||
|
||
The `--global-option` and `--install-option` options are used to pass options to `setup.py`. | ||
The `--global-option` option is used to pass options to `setup.py`. | ||
|
||
```{attention} | ||
These options are highly coupled with how pip invokes setuptools using the {doc}`../reference/build-system/setup-py` build system interface. It is not compatible with newer {doc}`../reference/build-system/pyproject-toml` build system interface. | ||
|
@@ -171,15 +170,10 @@ This is will not work with other build-backends or newer setup.cfg-only projects | |
|
||
If you have a declaration like: | ||
|
||
FooProject >= 1.2 --global-option="--no-user-cfg" \ | ||
--install-option="--prefix='/usr/local'" \ | ||
--install-option="--no-compile" | ||
FooProject >= 1.2 --global-option="--no-user-cfg" | ||
|
||
The above translates roughly into running FooProject's `setup.py` script as: | ||
|
||
python setup.py --no-user-cfg install --prefix='/usr/local' --no-compile | ||
python setup.py --no-user-cfg install | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @SpecLad yes, that is correct. I'll take care of this. Thanks! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hm, actually that will be for a subsequent PR that removes the setup.py install code path. This one just removes There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know that the |
||
|
||
Note that the only way of giving more than one option to `setup.py` is through multiple `--global-option` and `--install-option` options, as shown in the example above. The value of each option is passed as a single argument to the `setup.py` script. Therefore, a line such as the following is invalid and would result in an installation error. | ||
|
||
# Invalid. Please use '--install-option' twice as shown above. | ||
FooProject >= 1.2 --install-option="--prefix=/usr/local --no-compile" | ||
Note that the only way of giving more than one option to `setup.py` is through multiple `--global-option` options. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Remove support for the deprecated ``--install-options``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After this PR, there's only one option left (
--global-option
). Although it might be worth it to document--build-option
in this section.Also, GitHub won't let me comment on the correct line, but there's a warning about disabling the use of wheels above, which should no longer be relevant.