On May 8, 2009, at 3:25 AM, Robert wrote:

> Lisandro Dalcin wrote:
>> On Thu, May 7, 2009 at 11:10 AM, Robert <[email protected]>  
>> wrote:
>>> On Windows in distutils/distutils.cfg MingW is set instead of VC
>>> default
>>>
>>> [build]
>>> compiler = mingw32
>>>
>>>
>>> works well with extensions, including setup.py-method for building
>>> Cython modules. But it fails with pyximport method.
>>> Is this a bug - or how to tell using the MingW compiler?
>>>
>> I would not say it is a bug, but rather a consequence of the
>> implementation of pyximport.
>> Likely a call to  "dist.parse_config_files()" should be added just
>> before "dist.parse_command_line()" in pyximport/pyxbuild.py
>> However, if you do this, a "setup.cfg" file will be parse if present
>> in $PWD... This could be seen as a gotcha, or as a feature...
>
> Thanks,
>
> in attachment my patch so far to:
>
> * only load the global distutils.cfg
> * extend the .pyxbld scheme for enabling custom setup() args
> * speed up import pyximport;pyximport.install() for use in auto  
> startup files (by late imports). It was quite slowing down python  
> startup crucially.
>
> Maybe its interesting for sb else too, or for general.
> Didn't find into http://trac.cython.org/cython_trac/ so far.

I don't use Windows, and nor do I use pyximport  much, but I think  
these changes are valuable. Please add a ticket (mail me offlist if  
you don't yet have an account).

- Robert

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to