From 521f3bb9eac37c8e9221e691c9c0c9b906976a28 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Sun, 30 Jan 2011 03:03:36 -0800 Subject: [PATCH] Move windows distutils hack to the correct place. --- runtests.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) 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'] -- 2.26.2