From d6e9ff9cba58fd0d4a795866051de40e1cefc54b Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Fri, 28 Jan 2011 00:55:45 -0800 Subject: [PATCH] Windows runtests.py hack. --- runtests.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- 2.26.2