[f2py] Re: f2py-users Digest, Vol 9, Issue 1
Chris Fonnesbeck
fonnesbeck at gmail.com
Mon Oct 3 17:09:05 EEST 2005
> On Sun, 2 Oct 2005, Chris Fonnesbeck wrote:
>
> > Can f2py be used *only* with numarray? I have installed it with on my
> > numarray on my system, but get the following error when I try to use
> > it:
> >
> > Oliver:/usr/local/src/PyMC/PyMC chris$ f2py -c -m flib flib.f
> ...
> > ImportError: Must have Numeric installed.
>
> You need to specify -DNUMARRAY in f2py comman line to build extension
> modules against numarray. So, try
>
> f2py -c -m flib flib.f -DNUMARRAY
>
Thanks Pearu,
How about in the context of a setup.py file, where extensions are
specified? For example, mine is:
#!/usr/bin/env python
from scipy_distutils.core import setup,Extension
flib = Extension(name='PyMC.flib',sources=['PyMC/flib.f'])
version = "0.9.2"
setup(
version=version,
author="Chris Fonnesbeck",
author_email="fonnesbeck at mac.com",
description="Version %s of PyMC" % version,
license="GNU GPL",
name="PyMC",
url="pymc.sourceforge.net",
packages=["PyMC"],
ext_modules = [flib]
)
Is there an argument for "setup" to include such command-line
arguments for f2py?
Thanks,
Chris
More information about the f2py-users
mailing list