File tree Expand file tree Collapse file tree
Misc/NEWS.d/next/Documentation Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -60,6 +60,7 @@ Example of usage::
6060 >>> sysconfig.get_config_vars('AR', 'CXX')
6161 ['ar', 'g++']
6262
63+ .. _installation_paths :
6364
6465Installation paths
6566------------------
@@ -72,7 +73,7 @@ Every new component that is installed using :mod:`distutils` or a
7273Distutils-based system will follow the same scheme to copy its file in the right
7374places.
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
8890Each scheme is itself composed of a series of paths and each path has a unique
8991identifier. Python currently uses eight paths:
Original file line number Diff line number Diff line change 1+ Link doc for sys.prefix to sysconfig doc on installation paths.
You can’t perform that action at this time.
0 commit comments