Windows runtests.py hack.
authorRobert Bradshaw <robertwb@math.washington.edu>
Fri, 28 Jan 2011 08:55:45 +0000 (00:55 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Fri, 4 Feb 2011 09:56:49 +0000 (01:56 -0800)
runtests.py

index 0d805bfe58fd503669869497b06ee0170d758e85..11d41d492f1a46dc93b7a1b639189fd3dd41a187 100644 (file)
@@ -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