[Python-checkins] GH-92584: Remove references to Distutils in ``PYTHONUSERBASE`` (#108040)

vstinner webhook-mailer at python.org
Wed Aug 16 16:43:33 EDT 2023


https://github.com/python/cpython/commit/636ca313b2f7ce09a311889995778dccae8ebe40
commit: 636ca313b2f7ce09a311889995778dccae8ebe40
branch: main
author: Adam Turner <9087854+AA-Turner at users.noreply.github.com>
committer: vstinner <vstinner at python.org>
date: 2023-08-16T22:43:30+02:00
summary:

GH-92584: Remove references to Distutils in ``PYTHONUSERBASE`` (#108040)

Remove references to Distutils in ``PYTHONUSERBASE``

files:
M Doc/using/cmdline.rst
M Misc/python.man

diff --git a/Doc/using/cmdline.rst b/Doc/using/cmdline.rst
index 4bf67eb439ec6..23c89400f152b 100644
--- a/Doc/using/cmdline.rst
+++ b/Doc/using/cmdline.rst
@@ -811,8 +811,8 @@ conflict.
 
    Defines the :data:`user base directory <site.USER_BASE>`, which is used to
    compute the path of the :data:`user site-packages directory <site.USER_SITE>`
-   and :ref:`Distutils installation paths <inst-alt-install-user>` for
-   ``python setup.py install --user``.
+   and :ref:`installation paths <inst-alt-install-user>` for
+   ``python -m pip install --user``.
 
    .. seealso::
 
diff --git a/Misc/python.man b/Misc/python.man
index bf7cf767d164a..9f89c94adf502 100644
--- a/Misc/python.man
+++ b/Misc/python.man
@@ -592,8 +592,8 @@ works on Mac OS X.
 .IP PYTHONUSERBASE
 Defines the user base directory, which is used to compute the path of the user
 .IR site-packages
-directory and Distutils installation paths for
-.IR "python setup\.py install \-\-user" .
+directory and installation paths for
+.IR "python \-m pip install \-\-user" .
 .IP PYTHONPROFILEIMPORTTIME
 If this environment variable is set to a non-empty string, Python will
 show how long each import takes. This is exactly equivalent to setting



More information about the Python-checkins mailing list