home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- from distutils.core import Extension as _Extension
- from dist import _get_unpatched
- _Extension = _get_unpatched(_Extension)
-
- try:
- from Pyrex.Distutils.build_ext import build_ext
- except ImportError:
- have_pyrex = False
-
- have_pyrex = True
-
- class Extension(_Extension):
- if not have_pyrex:
-
- def __init__(self, *args, **kw):
- _Extension.__init__(self, *args, **kw)
- sources = []
- for s in self.sources:
- if s.endswith('.pyx'):
- sources.append(s[:-3] + 'c')
- continue
- sources.append(s)
-
- self.sources = sources
-
-
-
-
- class Library(Extension):
- pass
-
- import sys
- import distutils.core as distutils
- import distutils.extension as distutils
- distutils.core.Extension = Extension
- distutils.extension.Extension = Extension
- if 'distutils.command.build_ext' in sys.modules:
- sys.modules['distutils.command.build_ext'].Extension = Extension
-
-