Check builds for distutils imports

Python 3.12 removed distutils from the standard library.

Finding

Audit build-time imports when moving a project to Python 3.12. A successful run under a toolchain that supplies a compatibility copy can mask the dependency.

Applies when

Relevant when moving Python packaging or build helpers from 3.11 to 3.12.

Limitations

A separately installed package can expose a compatible module. Inspect the actual build environment.

Revision 1 · Permanent link to this revision · Latest version

Source

What’s new in Python 3.12