[f2py] Fortran include path, and customizing compile options

Drew Mccormack da.mccormack at few.vu.nl
Mon Jul 11 17:58:22 EEST 2005


I have just made the switch from Pyfort, but can't get everything  
working. In particular, I would like to customize my Fortran compile  
options, and change the module include path. I am using scipy_distutils.

This is what I have tried:

modpaths = ['mod/path/1','mod/path/2']

f2py_options = []
for p in modpaths: f2py_options.append('-I' + p)
f2py_options.append(r'--f90flags="-qsuffix=f=f90"')

# Define the extension module(s)
extension = Extension(name = name,
                       sources = sources,
                       libraries = libraries,
                       library_dirs=map(expand_sh,library_dirs),
                       f2py_options = f2py_options,
                       )

setup(name = name,
       description  = description,
       author       = author,
       author_email = author_email,
       ext_modules  = [extension],
       )


However, the options I pass to f2py are not used.
Can anyone help me out with this?
(Note that I am not subscribed to the list, so please email me  
directly.)

Regards,
Drew McCormack


========================================
  Dr. Drew McCormack (Kmr. R153)
  Afd. Theoretische Chemie
  Faculteit Exacte Wetenschappen
  Vrije Universiteit Amsterdam
  De Boelelaan 1083
  1081 HV Amsterdam
  The Netherlands

  Email        da.mccormack at few.vu.nl
  Web        www.maniacalextent.com

  Telephone      +31 20 5987623
  Mobile        +31 6   48321307
  Fax           +31 20 5987629


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cens.ioc.ee/pipermail/f2py-users/attachments/20050711/e198fc50/attachment-0001.htm


More information about the f2py-users mailing list