File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed
Misc/NEWS.d/next/Documentation Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -1216,13 +1216,10 @@ always available.
1216
1216
.. data :: prefix
1217
1217
1218
1218
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
1220
1220
``'/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.
1226
1223
1227
1224
.. note :: If a :ref:`virtual environment <venv-def>` is in effect, this
1228
1225
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::
60
60
>>> sysconfig.get_config_vars('AR', 'CXX')
61
61
['ar', 'g++']
62
62
63
+ .. _installation_paths :
63
64
64
65
Installation paths
65
66
------------------
@@ -72,7 +73,7 @@ Every new component that is installed using :mod:`distutils` or a
72
73
Distutils-based system will follow the same scheme to copy its file in the right
73
74
places.
74
75
75
- Python currently supports seven schemes:
76
+ Python currently supports six schemes:
76
77
77
78
- *posix_prefix *: scheme for POSIX platforms like Linux or macOS. This is
78
79
the default scheme used when Python or a component is installed.
@@ -84,6 +85,7 @@ Python currently supports seven schemes:
84
85
located under the user home directory.
85
86
- *nt *: scheme for NT platforms like Windows.
86
87
- *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.
87
89
88
90
Each scheme is itself composed of a series of paths and each path has a unique
89
91
identifier. 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