From: Robert Bradshaw Date: Sun, 30 Jan 2011 11:03:36 +0000 (-0800) Subject: Move windows distutils hack to the correct place. X-Git-Tag: 0.14.1~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=521f3bb9eac37c8e9221e691c9c0c9b906976a28;p=cython.git Move windows distutils hack to the correct place. --- diff --git a/runtests.py b/runtests.py index 59ddc4af..11bfa742 100644 --- a/runtests.py +++ b/runtests.py @@ -26,6 +26,13 @@ try: except ImportError: # No threads, no problems threading = None +WITH_CYTHON = True + +from distutils.dist import Distribution +from distutils.core import Extension +from distutils.command.build_ext import build_ext as _build_ext +distutils_distro = Distribution() + if sys.platform == 'win32': # TODO: Figure out why this hackery (see http://thread.gmane.org/gmane.comp.python.cython.devel/8280/). config_files = distutils_distro.find_config_files() @@ -38,14 +45,6 @@ if sys.platform == 'win32': except ValueError: pass distutils_distro.parse_config_files(cfgfiles) - -WITH_CYTHON = True - -from distutils.dist import Distribution -from distutils.core import Extension -from distutils.command.build_ext import build_ext as _build_ext -distutils_distro = Distribution() - TEST_DIRS = ['compile', 'errors', 'run', 'wrappers', 'pyregr', 'build'] TEST_RUN_DIRS = ['run', 'wrappers', 'pyregr']