-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Make --no-binary build a wheel locally instead of calling setup.py install #9769
Copy link
Copy link
Closed
Description
This is one of a series of deprecations meant to collect feedback on the ultimate goal of always installing source distributions by first building a wheel and then installing from it.
This is made with the following changes:
- add a new feature flag
--use-feature=always-install-via-wheel, that is intended to become the default and only mechanism in the future - when
--no-binaryis used without the feature flag, emit a deprecation warning about the fallback tosetup.py install - when
--no-binaryis used with the feature flag, build a wheel from the sdist (via PEP 517 orsetup.py bdist_wheel) then install it - when
--no-binaryis used with the feature flag, the wheel that was built locally is cached (unless the cache is disabled) - since
--install-option,--build-optionand--global-optionimply--no-binary, the deprecation warning will be emitted when these options are used without the feature flag - deprecate
--install-option allow using--build-optionin theinstallcommand, as well as inrequirement.txtlines, as a transitory mechanism until the ecosystem supports PEP 517 config settings, which are meant to replace both--build-optionsand--global-options
Towards #8102
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels