-
Notifications
You must be signed in to change notification settings - Fork 56
Closed
Description
Currently prepare_metadata_for_build_wheel
builds a wheel if the hook is not implemented by the given backend.
It would be nice to be able to disable the automatic fallback behavior. The specific use cases are:
- More consistent user experience - a package that uses a backend that does not implement
preparing_metadata_for_build_wheel
may show "Preparing wheel metadata" for a long time and "Building wheel for (PEP 517)" for a short time. Another package that does implementpreparing_metadata_for_build_wheel
would show the opposite behavior. - When refactoring pip, we would like to align the actual state of the project on disk with the type representing that project in memory. See pypa/pip#6607 (comment) for reference. Specifically, a "Local modern project" may have its metadata queried but if that fails then we want to know about it and explicitly advance the state to a "Local wheel" by building a wheel. Mocking this behavior for unit tests is very straightforward, but those sorts of tests get further from the truth if the library is keeping a wheel off to the side.
Metadata
Metadata
Assignees
Labels
No labels