Lines Matching refs:distutils
1 from distutils.core import Extension as _Extension
2 from distutils.core import Distribution as _Distribution
5 """Protect against re-patching the distutils if reloaded
7 Also ensures that no other distutils extension monkeypatched the distutils
12 if not cls.__module__.startswith('distutils'):
14 "distutils has already been patched by %r" % cls
22 from Pyrex.Distutils.build_ext import build_ext
47 import sys, distutils.core, distutils.extension
48 distutils.core.Extension = Extension
49 distutils.extension.Extension = Extension
50 if 'distutils.command.build_ext' in sys.modules:
51 sys.modules['distutils.command.build_ext'].Extension = Extension