SILENT KILLERPanel

Current Path: > > opt > alt > python38 > share > > doc > alt-python38-setuptools > deprecated


Operation   : Linux premium131.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
Software     : Apache
Server IP    : 162.0.232.56 | Your IP: 216.73.216.111
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: //opt/alt/python38/share//doc/alt-python38-setuptools/deprecated

NameTypeSizeLast ModifiedActions
distutils Directory - -
distutils-legacy.rst File 1410 bytes October 22 2021 20:55:51.
easy_install.rst File 52138 bytes October 22 2021 20:55:51.
functionalities.rst File 1450 bytes October 22 2021 20:55:51.
index.rst File 783 bytes October 22 2021 20:55:51.
python_eggs.rst File 30943 bytes October 22 2021 20:55:51.

Reading File: //opt/alt/python38/share//doc/alt-python38-setuptools/deprecated/distutils-legacy.rst

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:

	SETUPTOOLS_USE_DISTUTILS=local

This behavior is planned to become the default.

Prefer Setuptools
-----------------

As Distutils is deprecated, any usage of functions or objects from distutils is similarly discouraged, and Setuptools aims to replace or deprecate all such uses. This section describes the recommended replacements.

``distutils.core.setup`` → ``setuptools.setup``

``distutils.cmd.Command`` → ``setuptools.Command``

``distutils.log`` → (no replacement yet)

``distutils.version.*`` → ``packaging.version.*``

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.

SILENT KILLER Tool