[f2py] python 2.6.1 and f2py from numpy1.2.0 don't work togethewr

moritz braun moritz.braun at gmail.com
Thu Dec 11 17:37:18 EET 2008


Dear Pearu

I think it will be useful to attach the code

see attached

regards

Moritz

On Thu, Dec 11, 2008 at 3:16 PM, Pearu Peterson
<pearu.peterson at gmail.com> wrote:
>
>
> moritz braun wrote:
>> Dear Pearu
>>
>> Is there a way to call the generated module with dummy keyword args to
>> check whether supplying such an  arguments is a workaround?
>
> No.
>
> Here is what I would try. Say, you have a Fortran subprogram in foo.f.
>
> Build the extension module so that all sources will be in the current
> directory:
>  f2py -c foo.f -m foo --build-dir .
>
> Edit foomodule.c file to remove the "|:foo.." part from
> PyArg_ParseTupleAndKeywords arguments.
>
> Recompile foomodule.c and rebuild the extension module using the
> commands that the f2py showed above.
>
> Pearu
>
>
>
>>
>> regards
>>
>> Moritz
>>
>> On Thu, Dec 11, 2008 at 2:39 PM, Pearu Peterson
>> <pearu.peterson at gmail.com> wrote:
>>>
>>> moritz braun wrote:
>>>> Dear Pearu
>>>>
>>>> Is there a way to prevent f2py from deleting the intermediate c-files
>>>> than I could check what is going on !
>>> Yes. Use --build-dir . option.
>>>
>>> Thanks!
>>> Pearu
>>>
>>> _______________________________________________
>>> f2py-users mailing list
>>> f2py-users at cens.ioc.ee
>>> http://cens.ioc.ee/mailman/listinfo/f2py-users
>>>
>>
>>
>>
>
> _______________________________________________
> f2py-users mailing list
> f2py-users at cens.ioc.ee
> http://cens.ioc.ee/mailman/listinfo/f2py-users
>



-- =

Prof M Braun		 Tel.:27-12-4298006/8027
Physics Department  Fax.: 27-12-4293643
University of South Africa (UNISA)	=

moritz.braun at gmail.com
P.O. Box 392 	=

0003
UNISA
 South Africa
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fortranobject.h
Type: text/x-chdr
Size: 3495 bytes
Desc: not available
Url : http://cens.ioc.ee/pipermail/f2py-users/attachments/20081211/1a9f1113=
/fortranobject-0001.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fortranobject.c
Type: text/x-csrc
Size: 30330 bytes
Desc: not available
Url : http://cens.ioc.ee/pipermail/f2py-users/attachments/20081211/1a9f1113=
/fortranobject-0001.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v1module.c
Type: text/x-csrc
Size: 7285 bytes
Desc: not available
Url : http://cens.ioc.ee/pipermail/f2py-users/attachments/20081211/1a9f1113=
/v1module-0001.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: v1.f
Type: text/x-fortran
Size: 98 bytes
Desc: not available
Url : http://cens.ioc.ee/pipermail/f2py-users/attachments/20081211/1a9f1113=
/v1-0001.bin


More information about the f2py-users mailing list