From 813ff05a80cef908704488e660fa07d49feb8a92 Mon Sep 17 00:00:00 2001 From: Lisandro Dalcin Date: Thu, 24 Sep 2009 18:42:00 -0300 Subject: [PATCH] pyximport: parse distutils config files (except local setup.cfg) --- pyximport/pyxbuild.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pyximport/pyxbuild.py b/pyximport/pyxbuild.py index 80c68b16..8cb094e1 100644 --- a/pyximport/pyxbuild.py +++ b/pyximport/pyxbuild.py @@ -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: -- 2.26.2