Skip to content

Commit 2a630e7

Browse files
[3.10] bpo-45788: Link sys.prefix doc to 'Installation paths' (GH-29606)
... To the Installation paths section of the sysconfig doc. (cherry picked from commit 4575c01) Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
1 parent fde9f61 commit 2a630e7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Doc/library/sys.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,13 +1216,10 @@ always available.
12161216
.. data:: prefix
12171217

12181218
A string giving the site-specific directory prefix where the platform
1219-
independent Python files are installed; by default, this is the string
1219+
independent Python files are installed; on Unix, the default is
12201220
``'/usr/local'``. This can be set at build time with the ``--prefix``
1221-
argument to the :program:`configure` script. The main collection of Python
1222-
library modules is installed in the directory :file:`{prefix}/lib/python{X.Y}`
1223-
while the platform independent header files (all except :file:`pyconfig.h`) are
1224-
stored in :file:`{prefix}/include/python{X.Y}`, where *X.Y* is the version
1225-
number of Python, for example ``3.2``.
1221+
argument to the :program:`configure` script. See
1222+
:ref:`installation_paths` for derived paths.
12261223

12271224
.. note:: If a :ref:`virtual environment <venv-def>` is in effect, this
12281225
value will be changed in ``site.py`` to point to the virtual

Doc/library/sysconfig.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ Example of usage::
6060
>>> sysconfig.get_config_vars('AR', 'CXX')
6161
['ar', 'g++']
6262

63+
.. _installation_paths:
6364

6465
Installation paths
6566
------------------
@@ -72,7 +73,7 @@ Every new component that is installed using :mod:`distutils` or a
7273
Distutils-based system will follow the same scheme to copy its file in the right
7374
places.
7475

75-
Python currently supports seven schemes:
76+
Python currently supports six schemes:
7677

7778
- *posix_prefix*: scheme for POSIX platforms like Linux or macOS. This is
7879
the default scheme used when Python or a component is installed.
@@ -84,6 +85,7 @@ Python currently supports seven schemes:
8485
located under the user home directory.
8586
- *nt*: scheme for NT platforms like Windows.
8687
- *nt_user*: scheme for NT platforms, when the *user* option is used.
88+
- *osx_framework_user*: scheme for macOS, when the *user* option is used.
8789

8890
Each scheme is itself composed of a series of paths and each path has a unique
8991
identifier. Python currently uses eight paths:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Link doc for sys.prefix to sysconfig doc on installation paths.

0 commit comments

Comments
 (0)