~stefanor/rapid/setuptools-60

Viewing all changes in revision 1391.

  • Committer: Stefano Rivera
  • Date: 2022-11-09 13:45:16 UTC
  • Revision ID: stefanor@debian.org-20221109134516-gwxyihden5r220zb
Import setuptools before distutils

setuptools 60 uses its own bunlded version of distutils, by default. It
injects this into sys.modules, at import time. So we need to make sure
that it is imported, before anything else imports distutils, to ensure
everything is using the same distutils version.

This is to prepare for Python 3.12, which will drop distutils.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: