Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions peps/pep-9999.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,16 @@ wheels will be covered in a subsequent PEP.

Each of these providers either defines a static list of compatible
features and their values, specifies a list of requirements referring
to Python packages or is one of the `builtin providers`_. In the case
of Python package providers (also called provider plugins), an API
to Python packages or is one of the `builtin providers`_.

Builtin providers are implemented within the installer to handle checks
that the plugin API cannot support. For example, the `ABI Dependency
Variant Provider`_ checks whether a wheel built against a particular
version of a dependency (e.g. PyTorch) is compatible with the version
selected during dependency resolution. This requires access to the
installer's dependency resolver.
Comment on lines +94 to +99

For Python package providers (also called provider plugins), an API
endpoint is either explicitly specified or inferred from the first
dependency string. The canonical way of querying the list of compatible
features and their values is then to install the specified packages and
Expand Down Expand Up @@ -588,10 +596,11 @@ future extensions.
Builtin providers
-----------------

Builtin providers are special providers that cannot be implemented
using the plugin API. They are defined in PEPs, and their identifiers
are used in the ``builtin`` key in the `provider information`_
dictionary.
Some compatibility checks require integration with a tool's internals,
such as its dependency resolver, that the plugin API does not expose.
Builtin providers handle these checks directly within the tool. They
are defined in PEPs, and their identifiers are used in the ``builtin``
key in the `provider information`_ dictionary.

All builtin providers are OPTIONAL. Tools that choose to implement them
MUST follow the PEP implementing them. Tools that do not recognize a
Expand Down
Loading