Re: f2py on windows tutorials

2006-09-27 Thread Robert Kern
Flavio wrote: > Hi Robert, > > Good News, > > I tried creating the setup.cfg as you suggested and ran > > python setup.py bdist_wininst > and > python setup.py bdist_egg > > both of them worked perfectly!!! compiled my Fortran extension, and > packed it up for distribution. > I have since insta

Re: f2py on windows tutorials

2006-09-27 Thread Robert Kern
Flavio wrote: > Hi Robert, > > Putting the .pyf first didn't do any good. I still get the same error > message of unknown file type That's ... odd. It works perfectly fine for scipy, and yet I can't get it to work, either, standing alone. > However when I try to compile with f2py, all works per

Re: f2py on windows tutorials

2006-09-27 Thread Flavio
Hi Robert, Good News, I tried creating the setup.cfg as you suggested and ran python setup.py bdist_wininst and python setup.py bdist_egg both of them worked perfectly!!! compiled my Fortran extension, and packed it up for distribution. I have since installed and tested and it even works! isn't

Re: f2py on windows tutorials

2006-09-27 Thread Flavio
Hi Robert, Putting the .pyf first didn't do any good. I still get the same error message of unknown file type However when I try to compile with f2py, all works perfectly! here is the command I used: f2py -c flib.pyf flib.f --compiler=mingw32 --fcompiler=gnu Note: if I use mingw instead of ming

Re: f2py on windows tutorials

2006-09-27 Thread Robert Kern
Flavio wrote: > Ok, > > I tried that and it seems we are making progress > > so here is my command: > > python setup.py build_ext --compiler=mingw32 --fcompiler=gnu > > Now it is complaining about my pyf!! > > error: unknown file type '.pyf' > > here is my setup .py: > > import setuptools, o

Re: f2py on windows tutorials

2006-09-27 Thread Flavio
Ok, I tried that and it seems we are making progress so here is my command: python setup.py build_ext --compiler=mingw32 --fcompiler=gnu Now it is complaining about my pyf!! error: unknown file type '.pyf' here is my setup .py: import setuptools, os from numpy.distutils.core import setup, Ex

Re: f2py on windows tutorials

2006-09-26 Thread Robert Kern
Robert Kern wrote: > Flavio wrote: >> Thank you Robert, >> >> I was surprised that the setup.py was virtually identical to the one I >> use for Linux. However I was not at all surprised when it didn't work. >> ;-) >> >> It complains it can't find msvc: >> >> No module named msvccompiler in numpy.di

Re: f2py on windows tutorials

2006-09-26 Thread Robert Kern
Flavio wrote: > Thank you Robert, > > I was surprised that the setup.py was virtually identical to the one I > use for Linux. However I was not at all surprised when it didn't work. > ;-) > > It complains it can't find msvc: > > No module named msvccompiler in numpy.distutils, trying from > dist

Re: f2py on windows tutorials

2006-09-26 Thread Flavio
Thank you Robert, I was surprised that the setup.py was virtually identical to the one I use for Linux. However I was not at all surprised when it didn't work. ;-) It complains it can't find msvc: No module named msvccompiler in numpy.distutils, trying from distutils.. error: the .NET Framework

Re: f2py on windows tutorials

2006-09-26 Thread Robert Kern
Flavio wrote: > Its been a while since i Tried this and right now I have no access to a > windows > machine to try it and show you the error messages I was getting. > > I was using the latest version of Python Enthouhgt edition. But I was > trying to compile the fortran code directly with f2py. >

Re: f2py on windows tutorials

2006-09-26 Thread Flavio
Its been a while since i Tried this and right now I have no access to a windows machine to try it and show you the error messages I was getting. I was using the latest version of Python Enthouhgt edition. But I was trying to compile the fortran code directly with f2py. What I would like to have i

Re: f2py on windows tutorials

2006-09-23 Thread Robert Kern
Flavio wrote: > Hello, > > Compiling f2py extensions in Linux is a trivial task, You can even > automate it with distutils. Now, in a Windows machine this does not > seem to be an easy task. At least, I could not find any decent tutorial > on how to do it. > > Is there a way to do this? Can some

f2py on windows tutorials

2006-09-23 Thread Flavio
Hello, Compiling f2py extensions in Linux is a trivial task, You can even automate it with distutils. Now, in a Windows machine this does not seem to be an easy task. At least, I could not find any decent tutorial on how to do it. Is there a way to do this? Can some one point me to a tutorial.,