Re: [f2py] f2py without MS Visual Studio
David Gregory <[email protected]>
| Newsgroups | gmane.comp.python.f2py.user |
|---|---|
| Message-ID | <[email protected]> |
Try it without -lmsvcr71. I don't know who added that to the page or why, but I've followed those insctructions verbatim on multiple clean installs (without VS) and never had to link against that dll. (although it has been a while) Can anybody on the list comment on why that instruction was added? Sent from my iPhone On Jul 1, 2009, at 9:30 AM, Robert Von Dreele <vondreel-Bt58TgthqyNYTrM/[email protected]> wrote: > OK, I've seen that page & followed the directions explicitly. Here > is result of trying f2py: > > Ignoring "Python was built with Visual Studio 2003; > extensions must be built with a compiler than can generate > compatible binaries. > Visual Studio 2003 was not found on this system. If you have Cygwin > installed, > you can try compiling with MingW32, by passing "-c mingw32" to > setup.py." (one should fix me in fcompiler/compaq.py) > running build > running scons > customize MSVCCompiler > Could not locate executable cl.exe > error: Could not find compiler executable info for scons > > the command line was: > f2py -c --fcompiler=gnu95 --compiler=mingw32 -lmsvcr71 -m foo foo.f90 > python version: > '2.5.4 (r254:67916, Dec 23 2008, 15:10:54) [MSC v.1310 32 bit > (Intel)]' > numpy version: > '1.1.1' ("superpack for python 2.5") > Clearly this thing is looking for the c compiler ('c1.exe') that > comes with Visual Studio even if there is no apparent intent to use > it. From the messages the problem is some place in "scons". I do > know from past experience that it will run if I have MS Visual > Studio installed, but I'm trying to avoid that now. I do not have > cygwin installed & have no intention of ever using it. My preference > is really for the MinGW compilers g77, etc. as they can compile my > much larger fortran code without problems on Windows, Linux & MacOSX > (unlike gfortran). > Please advise. > Bob Von Dreele > > ----- Original Message ----- > From: David Gregory <[email protected]> > Date: Tuesday, June 30, 2009 6:31 pm > Subject: Re: [f2py] f2py without MS Visual Studio > To: "[email protected]" <[email protected]>, For users of the f2py > program <f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]> > Cc: For users of the f2py program <f2py-users-Y4l6ocDipWCuvFJfX82//[email protected]> > > >> Have you seen this page? >> >> http://www.scipy.org/F2PY_Windows >> >> You'll probably want to share some specific details to get better >> help. >> >> - David >> >> >> On Jun 30, 2009, at 5:44 PM, Robert Von Dreele <[email protected]> >> wrote: >> >>> Hi, >>> I am trying to avoid installing an otherwise unused MS Visual C++ >> >>> and use f2py in either python 2.5.4 or 2.6.2. I use MinGW for my >> >>> fortran compiles in Windows and other systems (linux, etc.). >> Problem >>> is that f2py seems to want to "look" for MSVC cl.exe when it starts >> >>> up even if the f2py option "--compiler=mingw32" is used. >>> Bob Von Dreele >>> >>> _______________________________________________ >>> f2py-users mailing list >>> f2py-users-Y4l6ocDipWCuvFJfX82//[email protected] >>> http://cens.ioc.ee/mailman/listinfo/f2py-users >>