Hi Kurt!

On Wed, Mar 24, 2010 at 1:40 PM, Kurt Smith <[email protected]> wrote:
> On Wed, Mar 24, 2010 at 2:08 PM, Ondrej Certik <[email protected]> wrote:
>> Hi,
>>
>> do you think that fwrap would be usable over the summer? I will be
>> working with some fortran codes (f95), so I am curious whether I
>> should stay with f2py, or invest some time into fwrap and use Cython,
>> that I use anyway for C/C++.
>>
>
> I'm working on the build system as we speak :-)
>
>> Is there some webpage for it? Bug tracker?
>>
>
> I've been putting my time in on coding lately, so fwrap's public face
> is sorely lacking.  I need to remedy this soon.  Thanks for the
> motivation -- you and others have made it clear that soon is 'now.'
>
>> I found this blog:
>>
>> http://fortrancython.wordpress.com/
>>
>
> To be updated soon, too (I know, long on promises -- I'm very short on
> time lately).  But the project is active.
>
>> and I found this:
>>
>> http://hg.cython.org/fwrap-dev/
>>
>> Is this the official source code?
>>
>> How do I compile it and use it? How do I run tests? I tried:
>>
>> $ python fwrap.py
>> Traceback (most recent call last):
>>  File "fwrap.py", line 4, in <module>
>>    main()
>>  File "/home/ondrej/repos/fwrap-dev/fwrap_src/main.py", line 12, in main
>>    wrap(options, args)
>>  File "/home/ondrej/repos/fwrap-dev/fwrap_src/main.py", line 18, in wrap
>>    funcs_templ = [(fc_wrap.generate_fortran, "%s_c.f90"),
>> AttributeError: 'module' object has no attribute 'generate_fortran'
>>
>> $ python runtests.py
>> Traceback (most recent call last):
>>  File "runtests.py", line 799, in <module>
>>    from fwrap_src.Main import wrap
>>
>>
>> And I didn't find any setup.py, or README (I found NOTES.txt, but no
>> build instructions). Sorry for the basic questions, I just want to
>> give it a shot.
>>
>>
>> Kurt and Dag seem to be working/interested in this, so if we can get
>> something usable (90%) to get started and then once I can use it for
>> my stuff (I just need simple wrappers for now), it'd be really cool.
>
> I'm *really* aiming for something like 90% by the end of April, as
> unlikely as the above makes it seem.  I'll put a post on the blog
> (fortrancython.wordpress.com/) about what 90% means.  It will include
> all the basic support stuff that you mention above (where hosted
> (likely bitbucket), a mailing-list, and the features supported).
>
> So by summer (end of May) fwrap should have a couple of releases out,
> and be usable.  It will certainly work for simple wrappers (no
> callback support).  Although that depends on just what you mean by
> 'simple.'

That should be enough. I use cmake, so I'd appreciate if fwrap could
just spit the C (or fortran or both) files, that I compile and link
myself. Just like Cython does. (I read some issues with integrating
fwrap into build tools like distutils etc. ---- I really don't need
that at all). If I can wrap fortran subroutines, pass some arguments
to them from Python and get results back (as numpy arrays), that's all
I need. I will need passing numpy arrays in and out though --- I don't
know if this is "simple" or not. I don't need callbacks.

It seems to me, that fwrap is really close. Can you please ping me,
when I can run some simple example with fwrap? I will need some time
to learn it, so if you could just fix fwrap so that it runs, it'd be
cool for now. :)

I am excited, couldn't wait to see this working, at least a little bit.

Thanks and looking forward!

Ondrej
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to