contrib/import-checker.py
branchstable
changeset 51659 d9faa71a57f6
parent 51369 617af10994fb
child 52183 3ba998d7fc77
--- a/contrib/import-checker.py	Mon Jul 08 16:20:04 2024 +0200
+++ b/contrib/import-checker.py	Mon Jul 08 16:44:07 2024 +0200
@@ -237,6 +237,8 @@
         yield m
     for m in ['cffi']:
         yield m
+    yield 'distutils'  # in Python < 3.12
+    yield 'distutils.version'  # in Python < 3.12
     stdlib_prefixes = {sys.prefix, sys.exec_prefix}
     # We need to supplement the list of prefixes for the search to work
     # when run from within a virtualenv.