From: Robert Bradshaw Date: Fri, 28 Jan 2011 08:55:45 +0000 (-0800) Subject: Windows runtests.py hack. X-Git-Tag: 0.14.1rc3~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=40514012913fbf0bb0db86ae16feceab6958fc04;p=cython.git Windows runtests.py hack. --- diff --git a/runtests.py b/runtests.py index 0d805bfe..11d41d49 100644 --- a/runtests.py +++ b/runtests.py @@ -26,6 +26,18 @@ try: except ImportError: # No threads, no problems threading = None +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() + try: config_files.remove('setup.cfg') + except ValueError: pass + distutils_distro.parse_config_files(config_files) + + cfgfiles = distutils_distro.find_config_files() + try: cfgfiles.remove('setup.cfg') + except ValueError: pass + distutils_distro.parse_config_files(cfgfiles) + WITH_CYTHON = True