From: Lisandro Dalcin Date: Thu, 24 Sep 2009 21:42:00 +0000 (-0300) Subject: pyximport: parse distutils config files (except local setup.cfg) X-Git-Tag: 0.11.3.rc0~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=813ff05a80cef908704488e660fa07d49feb8a92;p=cython.git pyximport: parse distutils config files (except local setup.cfg) --- 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: