[Numpy-discussion] numpy.distutils/f2py: forcing 8-bit reals

David Warde-Farley dwf@cs.toronto....
Mon Mar 29 16:59:29 CDT 2010


Hi,

In my setup.py, I have
from numpy.distutils.misc_util import Configuration

fflags= '-fdefault-real-8 -ffixed-form'
config = Configuration(
     'foo',
     parent_package=None,
     top_path=None,
     f2py_options='--f77flags=\'%s\' --f90flags=\'%s\'' % (fflags,  
fflags)
)

However I am still getting stuff returned in 'real' variables as  
dtype=float32. Am I doing something wrong?

Thanks,

David


More information about the NumPy-Discussion mailing list