diff options
author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-03-13 20:55:27 +0000 |
---|---|---|
committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-03-13 20:56:16 +0000 |
commit | 722e1fd0e50ad69fbdd4d0373fc5bd4d75a1d845 (patch) | |
tree | 8357525222e9277b68ff40739639015fe8473511 /docs/deprecated | |
parent | ba25a5f0287177f19574c577db370c684b51b415 (diff) | |
download | python-setuptools-git-722e1fd0e50ad69fbdd4d0373fc5bd4d75a1d845.tar.gz |
[Docs] Improve documentation about migration from distutils
Diffstat (limited to 'docs/deprecated')
-rw-r--r-- | docs/deprecated/distutils-legacy.rst | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/docs/deprecated/distutils-legacy.rst b/docs/deprecated/distutils-legacy.rst index 148dc259..cdc4e39b 100644 --- a/docs/deprecated/distutils-legacy.rst +++ b/docs/deprecated/distutils-legacy.rst @@ -3,11 +3,10 @@ Porting from Distutils Setuptools and the PyPA have a `stated goal <https://github.com/pypa/packaging-problems/issues/127>`_ to make Setuptools the reference API for distutils. -Since the 49.1.2 release, Setuptools includes a local, vendored copy of distutils (from late copies of CPython) that is disabled by default. To enable the use of this copy of distutils when invoking setuptools, set the enviroment variable: +Since the 49.1.2 release, Setuptools includes a local, vendored copy of distutils (from late copies of CPython) that is enabled by default. To disable the use of this copy of distutils when invoking setuptools, set the enviroment variable: - SETUPTOOLS_USE_DISTUTILS=local + SETUPTOOLS_USE_DISTUTILS=stdlib -This behavior is planned to become the default. Prefer Setuptools ----------------- @@ -20,12 +19,15 @@ As Distutils is deprecated, any usage of functions or objects from distutils is ``distutils.command.{build_clib,build_ext,build_py,sdist}`` → ``setuptools.command.*`` -``distutils.log`` → (no replacement yet) +``distutils.log`` → :mod:`logging` (standard library) ``distutils.version.*`` → ``packaging.version.*`` ``distutils.errors.*`` → ``setuptools.errors.*`` [#errors]_ + +Migration is also provided by :pep:`632#migration-advice`. + If a project relies on uses of ``distutils`` that do not have a suitable replacement above, please search the `Setuptools issue tracker <https://github.com/pypa/setuptools/issues/>`_ and file a request, describing the use-case so that Setuptools' maintainers can investigate. Please provide enough detail to help the maintainers understand how distutils is used, what value it provides, and why that behavior should be supported. |