Lisandro Dalcin wrote:
> Robert, I would like to push this, in order to (hopefully) stop the
> endless pain of WinDog users wanting to use MinGW.
>
> IIRC, we discussed about this in the past and agreed that distutils
> config files (in Python's site-packages and user's $HOME) should be
> honored, but NOT a bare 'setup.cfg' in the current working
> directory... Well, here you have... What do you think?
>
> diff -r 71980dd690eb pyximport/pyxbuild.py
> --- a/pyximport/pyxbuild.py Tue Sep 22 02:13:13 2009 -0700
> +++ b/pyximport/pyxbuild.py Thu Sep 24 10:57:17 2009 -0300
> @@ -55,6 +55,11 @@
> 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:
>
>
+1 from me.
--
Dag Sverre
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev