Registry / devops / standard-distutils

standard-distutils

JSON →
library3.11.9pypypi✓ verified 80d ago

Redistribution of the deprecated Python standard library distutils, marked as a 'dead battery'. Version 3.11.9 mirrors CPython 3.11's distutils. No longer maintained; replaced by setuptools and packaging.

pip install standard-distutils
INSTALL
IMPORT
SIG · STANDARD-DISTUTILS
S
standard-distutils
devopspythonv3.11.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

distutils
import distutils
from setuptools import distutils

Show how to replace distutils with setuptools.

# standard-distutils is a redistribution of the dead distutils. Do not use. # Instead, use setuptools: from setuptools import setup, Extension setup(name='example', version='1.0', ext_modules=[Extension('example', ['example.c'])])
Debug
Known issues
deprecateddistutils is deprecated since Python 3.10 and removed in 3.12. standard-distutils exists only for legacy compatibility and will receive no updates.
fix
Replace all distutils usage with setuptools or packaging.
affects: >=3.10
gotchaInstalling standard-distutils does not make distutils importable by itself. The package is a compatibility shim distributed via pip but the import path remains 'distutils' only if Python's site-packages shim is present.
fix
Do not rely on standard-distutils for new projects. Use setuptools instead.
affects: all
breakingPython 3.12+ does not include distutils in the standard library. Code using distutils will raise ImportError unless setuptools provides a backport.
fix
Replace 'from distutils import ...' with 'from setuptools import ...' or 'from packaging import ...'.
affects: 3.12+
Upgrade
Version history
3.11.9latest on PyPI · released Oct 30, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
8
Resources
standard-distutils — pip install standard-distutils · libregistry