Hi guys,
Thanks for the prompt reply.
> Date: Tue, 15 Sep 2009 13:52:18 -0300
> From: [email protected]
> To: [email protected]
> Subject: Re: [Cython] vcvarsall.bat
>
> 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...
I have not had a look at the patches yet but thought I would just comment on
the other things you suggested. I dual boot Windows and Linux but,
unfortunately, I am running the program on a Windows machine at work.
> 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
As far as the disutils.cfg, I had already done that to no avail. It was in the
correct place too. I just created the file using notepad and copied in the same
text as you have writen (but from one of the install help documents on the
cython website). As I have had this in from the start it doesn't seem to help
(me anyway)!
> 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)
Thanks for your detailed directions in finding the home directory. However,
when I type this into the command line python interpreter, I get a NameError:
'os' is not defined. This seems a bit weird to me... As such I am unsure as to
where to put the pydisutils.cfg file.
> BTW, If you can elaborate a bit more on this and contribute all this
> stuff to the Cython wiki, it would be great....
I wouldn't mind putting this stuff in the wiki in brief if I find a solution.
It would probably be mostly copy and pasted from this conversation though,
especially as I have no real experience at this kind of thing...
Thanks again for the info,
Sam
> 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
_________________________________________________________________
MSN straight to your mobile - news, entertainment, videos and more.
http://clk.atdmt.com/UKM/go/147991039/direct/01/_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev