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

Remove deprecated --install-option #11858

Merged
merged 1 commit into from
Mar 18, 2023
Merged

Conversation

sbidoul
Copy link
Member

@sbidoul sbidoul commented Mar 12, 2023

First step towards removing support for setup.py install, as announced in the deprecation notices.

closes #11358

@sbidoul sbidoul changed the title Remove support for the deprecated --install-options Remove support for the deprecated --install-option Mar 12, 2023
@sbidoul sbidoul changed the title Remove support for the deprecated --install-option Remove support for the deprecated --install-option Mar 12, 2023
@sbidoul
Copy link
Member Author

sbidoul commented Mar 12, 2023

🟢

@pypa/pip-committers is anyone not on board with removing support for setup.py install in 23.1 ?

@sbidoul sbidoul added project: setuptools Related to setuptools type: deprecation Related to deprecation / removal. labels Mar 12, 2023
@sbidoul sbidoul added this to the 23.1 milestone Mar 12, 2023
@sbidoul sbidoul changed the title Remove support for the deprecated --install-option Remove deprecated --install-option Mar 12, 2023

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this install should be changed to bdist_wheel? I'm assuming that pip won't be using install anymore if --install-option is not used.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SpecLad yes, that is correct. I'll take care of this. Thanks!

Copy link
Member Author

Choose a reason for hiding this comment

The 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 --install-option.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know that the setup.py install code path still exists, but I think in this example it's reasonable to assume that it won't be used in the absence of --install-option.

@@ -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.
Copy link
Contributor

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.

@github-actions github-actions bot added the needs rebase or merge PR has conflicts with current master label Mar 18, 2023
@pypa-bot pypa-bot removed the needs rebase or merge PR has conflicts with current master label Mar 18, 2023
@sbidoul
Copy link
Member Author

sbidoul commented Mar 18, 2023

I'm going to go ahead with this one and continue with the other removals scheduled for 23.1.

@SpecLad thanks for your comments on the doc. I'll check again when everything is merged to verify it is still consistent.

@sbidoul
Copy link
Member Author

sbidoul commented Mar 18, 2023

The MacOS test failure is unrelated, and the Windows failture is a transient. So merging.

@sbidoul sbidoul merged commit e798211 into pypa:main Mar 18, 2023
@sbidoul sbidoul deleted the rm-install-options-sbi branch March 18, 2023 10:51
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
project: setuptools Related to setuptools type: deprecation Related to deprecation / removal.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecate --install-options
4 participants