We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 461b4f1 commit 8cba3bcCopy full SHA for 8cba3bc
mypyc/build.py
@@ -45,6 +45,13 @@
45
if TYPE_CHECKING:
46
from distutils.core import Extension # noqa
47
48
+try:
49
+ # Import setuptools so that it monkey-patch overrides distutils
50
+ import setuptools # type: ignore # noqa
51
+except ImportError:
52
+ if sys.version_info >= (3, 12):
53
+ # Raise on Python 3.12, since distutils will go away forever
54
+ raise
55
from distutils import sysconfig, ccompiler
56
57
0 commit comments