Historical and Removed Modules

distutils

Removed from the standard library in Python 3.12; historical example targets Python 3.11. Supplied build and distribution tooling, including setup scripts and compiler configuration. Use a modern pyproject.toml build backend such as setuptools for packaging, sysconfig for interpreter paths and shutil for selected file utilities. Third-party compatibility copies do not restore standard-library status.

Formal Syntax & Structure

python syntaxpython
import distutils  # Historical only: removed in Python 3.12

Return Value

module (historical)

Historical module namespace, not a supported standard-library import on the Python 3.13 baseline.

Working Example

Example Snippetpython
# Historical example: Python 3.11; not executed.from distutils.util import strtoboolprint(strtobool("yes"))
Python Reference