IIRC, there are some patches in http://trac.cython.org/cython_trac/ to
make pyximport MinGW aware... Unfortunately, I did not have any chance
to review this, and Windows is always low in my priorities... You
know... the Windows OS has a lot of users, fans, and strong defenders
(we already had some of these "fights" here in this list!!!)... but
very few of them make any useful code contribution/testing/review for
their platform...

A fast workaround for your issue if to add a file named
"distutils.cfg" in C:\Python2.6\Lib\distutils (DISCLAIMER: do not
remember right now if this is the actual full path of distutils!) with
the contents below:

[build_ext]
compiler=mingw32

Alternatively, you can add a "pydistutils.cfg" file with the same
contents in %HOME% or %UserProfile% or watever your "home" directory
is in your Windows system  (tip: use os.path.expanduser('~') in a
Python prompt to figure out the right place)

Hope this help...

BTW, If you can elaborate a bit more on this and contribute all this
stuff to the Cython wiki, it would be great....

Regards,


On Tue, Sep 15, 2009 at 11:14 AM, Sam Parry <[email protected]> wrote:
> Hi guys,
>
> Not sure if I'm emailing to the correct place so apologies if I am spamming
> you...
>
> I am having problems with Cython compiling. I am following the tutorial on
> the main website (from the Users Guide) and when I type "python setup.py
> build_ext --inplace" I get an error saying "unable to find vcvarsall.bat". I
> am using MinGW as my compiler and running on windows XP. I have managed to
> find a way around this: typing "python setup.py build_ext --compiler=mingw32
> --inplace" works for the first 'hello world' tutorial part. However, I get
> the vcvarsall error when trying the pyximport method. Adding the
> "--compiler=mingw32" does not work for any of the examples using any form of
> numpy import.
>
> I would be grateful for any insights provided that could help me run cython!
> I am new to using the command line, c and cython (and not all that
> experienced with python either!) so forgive me if I need more detail than
> the average user!
>
> Thanks,
>
> Sam
> ________________________________
> Use Hotmail to send and receive mail from your different email accounts.
> Find out how.
> _______________________________________________
> Cython-dev mailing list
> [email protected]
> http://codespeak.net/mailman/listinfo/cython-dev
>
>



-- 
Lisandro Dalcín
---------------
Centro Internacional de Métodos Computacionales en Ingeniería (CIMEC)
Instituto de Desarrollo Tecnológico para la Industria Química (INTEC)
Consejo Nacional de Investigaciones Científicas y Técnicas (CONICET)
PTLC - Güemes 3450, (3000) Santa Fe, Argentina
Tel/Fax: +54-(0)342-451.1594
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to