[Numpy-discussion] Still having issues with f2py
Uwe Schmitt
rocksportrocker@googlemail....
Thu Sep 11 06:25:33 CDT 2008
On 11 Sep., 02:33, "Blubaugh, David A." <dbluba...@belcan.com> wrote:
> Mark,
> ... I
> was also wondering as to what is involved with "compiling with MingW32,
> by passing "-c mingw32" to setup.py."??
If you do not have the right MS compiler on your machine, you can use
the
mingw port of gcc instead. If you use enthougths edition you already
have
it, else you have to install the compiler.
Passing the compiler option to f2py is easiest if you write your own
setup.py
Mine look like this:
from numpy.distutils.core import Extension
import sys
ext1 = Extension(name = '_module',
sources = ['module.pyf', "algorithm.f",])
if __name__ == "__main__":
from numpy.distutils.core import setup
setup(name = 'testdmoude',
ext_modules = [ext1,],
)
You can call this as follows
python setup.py build -cmingw32
Greetings, Uwe
More information about the Numpy-discussion
mailing list