On Oct 21, 2009, at 6:37 AM, ozan hacıbekiroğlu wrote:

> I am new to python (almost 4 months) and Cython (1 week). I use  
> Vista and previous week I tried to use Cython and I had the same  
> problem about "vcvarsall.bat". By trial and error Now I can compile  
> scripts with Cython.

Great.

I'm not seeing anything about vcvarsall.bat on the Cython wiki, what  
exactly is the issue with it?

> What I did is,
>
> I first installed Microsoft Virtual C++ 2008 Express Edition (VC++)
>
> There is a "vcvarsall.bat" file under the installation directory of  
> VC++
>
> I copied the "vcvarsall.bat" file under "C:\Python26\Scripts" (not  
> required, you can include it with, sys.path.append("path-to-the- 
> file"))
>
> Then everything worked great :)
>
> Then, since I am a curious guy, I tried the use ".h" files of VC++  
> under include folder (C:\Program Files\Microsoft Visual Studio 9.0\VC 
> \include)
>
> I followed the instructions on the wiki page of Cython and Now I can  
> use those very easily. (with, cdef extern from "math.h", etc)
>
> It is a really good practice to use Cython and see everything works  
> perfectly for me, who is just a beginner.
>
>
> Ozan
> http://pypsoft.sourceforge.net
>
>
>
> On Tue, Sep 15, 2009 at 5:14 PM, 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
>
>
>
>
> -- 
> Ozan HACIBEKİROĞLU
> _______________________________________________
> Cython-dev mailing list
> [email protected]
> http://codespeak.net/mailman/listinfo/cython-dev

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

Reply via email to