j: Next unread message
k: Previous unread message
j a: Jump to all threads
j l: Jump to MailingList overview
On 08/29/2012 03:37 PM, Matyáš Novák wrote:
Hi, when I add fortran sources to add_extension, the resulting module has only methods from one of the sources, nothing else. (And I only need these methods for Cython so I don't need python wrapers and f2py for them at all).
I am just wildly guessing, but adding those sources to "depends" would not help?
Yes, it seems that f2py options don't work, I think the root is in the fact, that libraries added by add_library are not compiled by f2py, but only by fortran compiler, so there is no "space" to apply these options. I had read the distutils documentation and find nothing relevant (but I could miss something, obviously). Contacting numpy-guys is already in progress :-)
Good :) Because this is not something I feel like being able to be of much help...
But I realize that there is maybe one ugly hack: compile them as standalone extension and then pass the .so files to the linker of the "main" extension. It should work, but it's platform dependent (name of extension files can differ).
I would be pragmatic in this case for the moment :)
Thank for reply Matyas
PS: Sorry for missing subjec, i missed it when I changed sender adress to have the message accepted.