pyximport: parse distutils config files (except local setup.cfg)
authorLisandro Dalcin <dalcinl@gmail.com>
Thu, 24 Sep 2009 21:42:00 +0000 (18:42 -0300)
committerLisandro Dalcin <dalcinl@gmail.com>
Thu, 24 Sep 2009 21:42:00 +0000 (18:42 -0300)
pyximport/pyxbuild.py

index 80c68b1692d24621270998336fa9daeaf5ad0fa9..8cb094e17c7c1e865386f485da791756996a64fe 100644 (file)
@@ -55,6 +55,11 @@ def pyx_to_dll(filename, ext = None, force_rebuild = 0,
     build = dist.get_command_obj('build')
     build.build_base = pyxbuild_dir
 
+    config_files = dist.find_config_files()
+    try: config_files.remove('setup.cfg')
+    except ValueError: pass
+    dist.parse_config_files(config_files)
+
     try:
         ok = dist.parse_command_line()
     except DistutilsArgError: