Commit 521f3bb9 authored by Robert Bradshaw's avatar Robert Bradshaw

Move windows distutils hack to the correct place.

parent fda3c6f4
......@@ -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']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment