[f2py] skip and only options
fabien.wahl at snecma.fr
fabien.wahl at snecma.fr
Wed Apr 26 09:40:03 EEST 2006
Bonjour,
the only: and skip: statements works in the -c compilation mode.
Should work in -h signature mode according to the docs, but do not.
COMPILING
C:\tmp\tests>f2py.py -c --compiler=mingw32 -m test test.f only: foo :
running build
running config_fc
running build_src
building extension "test" sources
f2py options: ['only:', 'foo', ':']
f2py:> c:\docume~1\s021835\locals~1\temp\tmpnve5jt\src\testmodule.c
creating c:\docume~1\s021835\locals~1\temp\tmpnve5jt
creating c:\docume~1\s021835\locals~1\temp\tmpnve5jt\src
Reading fortran codes...
Reading file 'test.f' (format:fix,strict)
Post-processing...
Block: test
Block: foo
Post-processing (stage 2)...
Building modules...
Building module "test"...
Constructing wrapper function "foo"...
foo()
buildmodule: Could not found the body of interfaced routine "fooy".
Skipping.
[...]
TESTING
C:\tmp\tests>python
Python 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import test
>>> print test.__doc__
This module 'test' is auto-generated with f2py (version:2_2237).
Functions:
foo()
.
>>>
--------------------
Fabien WAHL
Ingénieur Etudes Nouvelles
Unité de conception de Turbomachines
SNECMA, Division Moteur Spatiaux
Direction Grosse Propulsion à Liquides
Forêt de Vernon BP 802
27208 VERNON
FRANCE
Tel +33 (0)2 32 21 72 77
Fax +33 (0)2 32 21 76 30
mailto:fabien.wahl at snecma.fr
|---------+------------------------------->
| | |
| | |
| | |
| | Fred Clare |
| | <fred at ucar.edu> |
| | Envoyé par : |
| | f2py-users-bounces at c|
| | ens.ioc.ee |
| | |
| | |
| | 25/04/2006 23:45 |
| | |
|---------+------------------------------->
>---------------------------------------------------------------------------------------------------------------------------|
| Pour : f2py-users at cens.ioc.ee |
| cc : |
| Objet : [f2py] skip and only options |
>---------------------------------------------------------------------------------------------------------------------------|
Could someone please show me an example of how to use
the "skip" or "only" options? If I have:
SUBROUTINE FOO ()
PRINT*, "From FOO!"
END
SUBROUTINE FOOY ()
PRINT*, "From FOOY!"
END
and do:
f2py -h test.pyf test.f only: foo :
I get:
Reading fortran codes...
Reading file 'test.f' (format:fix,strict)
Post-processing...
Block: foo
Block: fooy
Post-processing (stage 2)...
Saving signatures to file "./test.pyf"
I have tried all manner of permutations on this, but
always get all function blocks in the signature file.
Thanks,
Fred Clare
_______________________________________________
f2py-users mailing list
f2py-users at cens.ioc.ee
http://cens.ioc.ee/mailman/listinfo/f2py-users
#
This e-mail and any attached documents may contain confidential or proprietary information. If you are not the intended recipient, please advise the sender immediately and delete this e-mail and all attached documents from your computer system. Any unauthorised disclosure, distribution or copying hereof is prohibited.
Ce courriel et les documents qui y sont attaches peuvent contenir des informations confidentielles. Au cas ou vous ne seriez pas le destinataire de ce courriel, vous etes prie d'en informer l'expediteur immediatement et de le detruire ainsi que tous les documents attaches de votre systeme informatique. Toute divulgation, distribution ou copie du present courriel et des documents attaches sans autorisation prealable de son emetteur est interdite.
#
More information about the f2py-users
mailing list