Re: [Numpy-discussion] f2py produces so.so

2006-06-19 Thread Berthold Höllmann
George Nurser [EMAIL PROTECTED] writes:

 I have run into a strange problem with the current numpy/f2py (f2py
 2_2631, numpy 2631).
 I have a file [Wright.f] which contains 5 different fortran
 subroutines. Arguments have been specified as input or output by
 adding cf2pyintent (in), (out) etc.

 Doing
 f2py -c Wright.f -m Wright.so

simply try 

f2py -c Wright.f -m Wright

instead. Python extension modules require the an exported routine
named initmodule name (initWright in this case). But you told f2py
to generate an extension module named so in a package named
Wright, so the generated function is named initso. The *.so file
cannot be renamed because then there is no more matching init function
anymore.

Regards
Berthold
-- 
[EMAIL PROTECTED] / http://höllmanns.de/
[EMAIL PROTECTED] / http://starship.python.net/crew/bhoel/



___
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion


Re: [Numpy-discussion] f2py produces so.so

2006-06-19 Thread George Nurser
On 19/06/06, Berthold Höllmann [EMAIL PROTECTED] wrote:
 George Nurser [EMAIL PROTECTED] writes:

  I have run into a strange problem with the current numpy/f2py (f2py
  2_2631, numpy 2631).
  I have a file [Wright.f] which contains 5 different fortran
  subroutines. Arguments have been specified as input or output by
  adding cf2pyintent (in), (out) etc.
 
  Doing
  f2py -c Wright.f -m Wright.so

 simply try

 f2py -c Wright.f -m Wright

 instead. Python extension modules require the an exported routine
 named initmodule name (initWright in this case). But you told f2py
 to generate an extension module named so in a package named
 Wright, so the generated function is named initso. The *.so file
 cannot be renamed because then there is no more matching init function
 anymore.

 Regards
 Berthold

Stupid of me! Hit head against wall.

Yes, I eventually worked out that f2py -c Wright.f -m Wright was OK.

But many thanks for the explanation I see, what f2py was doing was
perfectly logical.


Regards, George.


___
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion