bpo-43976: add vendor config by FFY00 · Pull Request #25718 · python/cpython · GitHub
Skip to content
Closed
Show file tree
Hide file tree
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
8 changes: 7 additions & 1 deletion Doc/library/site.rst
19 changes: 4 additions & 15 deletions Doc/library/sysconfig.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ Python currently supports seven schemes:
- *nt*: scheme for NT platforms like Windows.
- *nt_user*: scheme for NT platforms, when the *user* option is used.

Additionally to these, Python also supports vendor schemes specified in the
``EXTRA_INSTALL_SCHEMES`` dictionary variable of the vendor config
(``--with-vendor-config`` configure option).

Each scheme is itself composed of a series of paths and each path has a unique
identifier. Python currently uses eight paths:

Expand Down Expand Up @@ -129,21 +133,6 @@ identifier. Python currently uses eight paths:
.. versionadded:: 3.10


.. function:: _get_preferred_schemes()

Return a dict containing preferred scheme names on the current platform.
Python implementers and redistributors may add their preferred schemes to
the ``_INSTALL_SCHEMES`` module-level global value, and modify this function
to return those scheme names, to e.g. provide different schemes for system
and language package managers to use, so packages installed by either do not
mix with those by the other.

End users should not use this function, but :func:`get_default_scheme` and
:func:`get_preferred_scheme()` instead.

.. versionadded:: 3.10


.. function:: get_path_names()

Return a tuple containing all path names currently supported in
Expand Down
26 changes: 26 additions & 0 deletions Doc/using/configure.rst
Loading