"""Pyrex.Distutils.core This module wraps the 'distutils.core' module and extends it to support Pyrex extension modules. This is the only module that needs to be imported to use the Distutils; provides the 'setup' function (which is to be called from the setup script). Also indirectly provides the Distribution and Command classes, although they are really defined in distutils.dist and distutils.cmd. """ # This module should be kept compatible with Python 2.1. __revision__ = "$Id:$" import sys, os from types import * from distutils.debug import DEBUG from distutils.errors import * from distutils.util import grok_environment_error # Mainly import these so setup scripts can "from distutils.core import" them. from distutils.dist import Distribution from distutils.cmd import Command # Make sure we get Pyrex's Extension class. #from Pyrex.Distutils.extension import Extension from extension import Extension from distutils.core import * extension_keywords = extension_keywords + \ ('pyrex_include_dirs', 'pyrex_create_listing', 'pyrex_cplus')