[SciPy-dev] Wrapping band matrices

Arnd Baecker arnd.baecker at web.de
Thu Jun 1 10:05:30 CDT 2006


On Thu, 1 Jun 2006, Pearu Peterson wrote:

>
>
> On Thu, 1 Jun 2006, Arnd Baecker wrote:
>
> > At this point it would be great if could give me a pointer why
> > I don't have the `overwrite_ab` option anymore  - does one have to
> > change the wrapper somehow?
>
> Adding overwrite to ab intent list will give the overwrite_ab option.
>
> HTH,

Yes - perfect - many thanks!

Just one more question - I tried to use
-DF2PY_REPORT_ON_ARRAY_COPY=1 -DF2PY_REPORT_ATEXIT
for testing purposes by the following construct (in various variants)
in setup.py:

    f2py_options = []

    f2py_options.append("-c -DF2PY_REPORT_ON_ARRAY_COPY=1 -DF2PY_REPORT_ATEXIT")

    config.add_extension('band',
                         sources = [generate_pyf],
                         depends = ['generic_band.pyf',
                                    'interface_gen.py'],
                         extra_info = lapack_opt,
                         f2py_options = f2py_options
                         )

However, I get
  f2py options: ['-c -DF2PY_REPORT_ON_ARRAY_COPY=1 -DF2PY_REPORT_ATEXIT']
  f2py: build/src/band/band.pyf
  Unknown option '-c -DF2PY_REPORT_ON_ARRAY_COPY=1 -DF2PY_REPORT_ATEXIT'



I also tried
  python setup.py build_src  --f2pyflags="-DF2PY_REPORT_ON_ARRAY_COPY=1
-DF2PY_REPORT_ATEXIT"
giving
Unknown option '-DF2PY_REPORT_ON_ARRAY_COPY=1'

As you can see, I am clearly lost, any pointers are appreciated!
(the above attempts were after reading
http://www.ifi.uio.no/in228/scripting/doc/python/fc/f2py.html#scipy-distutils-0-2-2-and-up
but obviously I did not get the right magic words ...)

Many thanks,

Arnd




More information about the Scipy-dev mailing list