[SciPy-dev] Re: Scipy-dev digest, Vol 1 #11 - 1 msg

Pearu Peterson pearu at cens.ioc.ee
Thu Sep 27 14:10:57 EDT 2001


On Thu, 27 Sep 2001, Travis Oliphant wrote:

> > The problem I am running into in linalg is that I get compile errors
> > in flapackmodule.c:
> > ,----
> > | linalg/flapackmodule.c:447: initializer element is not constant
> > | linalg/flapackmodule.c:502: initializer element is not constant
> > | linalg/flapackmodule.c:557: initializer element is not constant
> > | linalg/flapackmodule.c:616: initializer element is not constant
> > `----
> >
> > The respective code is
> > ,----[flapackmodule.c: 447]
> > | PyObject *cb_cselect_in_cgees__user__routines_capi = Py_None;
> > `----
> 
> 
> Well it looks like some more ifdefs are needed.
> 
> I think there is some DL_EXPORT macro that needs to be used somewhere for
> it to work on CYGWIN.  Because this is an f2py generated file, I'm not
> sure what to do.  Does f2py support Cygwin?

I have never tried cygwin but it is basically gcc (right?) and therefore
I did not see any reasons why f2py generated code would fail on
cygwin. However, it seems that I need to let f2py to put lines like 477
above to init<module> () block. But if there is a way to use macros please
let me know - the fix will be certainly simpler for me.

Meanwhile I suggest manually moving the initializations with Py_None to
the function flapackmodule(). (I am not sure when I am able to fix f2py
as it will not be trivial).

Regards,
	Pearu





More information about the SciPy-Dev mailing list