summaryrefslogtreecommitdiffstats
path: root/Doc/library/sys.rst
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2021-11-18 20:08:24 (GMT)
committerGitHub <noreply@github.com>2021-11-18 20:08:24 (GMT)
commit4575c01b750cd26377e803247c38d65dad15e26a (patch)
treecb2ebc7996f5846a4aab6db7c1023cb2bc179f48 /Doc/library/sys.rst
parent32959108f9c543e3cb9f2b68bbc782bddded6f42 (diff)
downloadcpython-4575c01b750cd26377e803247c38d65dad15e26a.zip
cpython-4575c01b750cd26377e803247c38d65dad15e26a.tar.gz
cpython-4575c01b750cd26377e803247c38d65dad15e26a.tar.bz2
bpo-45788: Link sys.prefix doc to 'Installation paths' (#29606)
... To the Installation paths section of the sysconfig doc.
Diffstat (limited to 'Doc/library/sys.rst')
-rw-r--r--Doc/library/sys.rst9
1 files changed, 3 insertions, 6 deletions
diff --git a/Doc/library/sys.rst b/Doc/library/sys.rst
index ee07ba1..175fc09 100644
--- a/Doc/library/sys.rst
+++ b/Doc/library/sys.rst
@@ -1216,13 +1216,10 @@ always available.
.. data:: prefix
A string giving the site-specific directory prefix where the platform
- independent Python files are installed; by default, this is the string
+ independent Python files are installed; on Unix, the default is
``'/usr/local'``. This can be set at build time with the ``--prefix``
- argument to the :program:`configure` script. The main collection of Python
- library modules is installed in the directory :file:`{prefix}/lib/python{X.Y}`
- while the platform independent header files (all except :file:`pyconfig.h`) are
- stored in :file:`{prefix}/include/python{X.Y}`, where *X.Y* is the version
- number of Python, for example ``3.2``.
+ argument to the :program:`configure` script. See
+ :ref:`installation_paths` for derived paths.
.. note:: If a :ref:`virtual environment <venv-def>` is in effect, this
value will be changed in ``site.py`` to point to the virtual