RE: [f2py] Location of vcvarsall.bat on Windows
<PHobson-EKW65Keeaxx8UrSeD/[email protected]>
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <C97487CD346EEA4E80423F51F6D1EB2F8AFD3DF21A@EXCHANGE-00.GeoSyntec.net> |
Pearu, Thanks for the response. I'm not exactly sure which steps of my long convoluted experience lead to me to get this worked out. But I think I downloaded a fresh installation of MingW32 and few other things (gforthan?) and eventually called it like so: ## C:\Python\Scripts> c:\python\python f2py.py -c --compiler=mingw32 --fcompiler=gnu95 -m foo bar.f90 ## Though looking back at the screenshot I took for posterity, I did this with my Python 2.5.4 installation. It works with my Python 2.6.2 installation after the code found gcc.exe in my Pythonxy 2.5 directory. Either way, I'm satisfied. Thank you very much -paul Paul M. Hobson Senior Staff Engineer -- Geosyntec Consultants 55 SW Yamhill St, Ste 200 Portland, OR 97204 Phone: (503) 222-9518 Web: www.geosyntec.com > -----Original Message----- > From: f2py-users-bounces-Y4l6ocDipWCuvFJfX82//[email protected] [mailto:f2py-users- > bounces-Y4l6ocDipWCuvFJfX82//[email protected]] On Behalf Of Pearu Peterson > Sent: Wednesday, September 30, 2009 5:47 AM > To: For users of the f2py program > Subject: Re: [f2py] Location of vcvarsall.bat on Windows > > > > Paul Hobson wrote: > > Hey everyone, > > > > I've followed f2py's example instructions to a T, and figure out > this error: > > "error: Unable to find vcvarsall.bat" (more f2py output is below) > > I was hit by this error too today. The error occurs with Python2.6 > because it introduces a new module msvc9compiler.py that somehow > breaks detecting mingw compiler. In general (and out of topic), > the error may occur when executing > > python setup.py build_ext --compiler=mingw32 > > As a workaround, one should use build command before build_ext: > > python setup.py build --compiler=mingw32 > > > I wrestled with this for several hours over the weekend. Went out > got > > the contents of vcvarsall.bat, but now I just can't figure out > what's > > calling it and where it should be. > > > > -I've tried C:\Python26\scripts, several gfortran directories, > > C:\...\Visual Studio\vc, etc > > -I'm on Python 2.6 with a fresh intallation of Numpy and gfortan > > (started fresh on Friday) > > -calling f2py without any arguments confirms that it's installed > correctly > > > > Any thoughts? Any help is very much appreciated. > > -paul > > > > -----f2py output----- > > > > PHobson@por-phobson /cygdrive/c/python26/scripts > > $ python f2py.py -c mingw32 -m hello hello.f90 > > Try using > python f2py.py -c --compiler=mingw32 -m hello hello.f90 > > Note that `-c` option has different meaning in f2py.py. > > HTH, > Pearu > > _______________________________________________ > f2py-users mailing list > f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] > http://cens.ioc.ee/mailman/listinfo/f2py-users