2 Aug 17:51
Re: [Cython] Include paths for pyximport (continued)
On Fri, 31 Jul 2009 18:53:22 +0200, Cyrille Rosset wrote: > Hi all, > > I am using cython and numpy and looked for a way to get cython modules > using numpy compiled with pyximport. > I found on the list the following message > (http://codespeak.net/pipermail/cython-dev/2009-May/005289.html) but > didn't find any modification in the cython repository in this direction. > > Following Lisandro Dalcín's suggestion, I made a patch that adds a > ext_opts option to pyximport.install() which cascades to > pyximport.get_distutils_extension() and is used as a dictionnary with > options for distutils.Extension(). > Only the dictionnary type is tested (I assume Extension will tell if an > option is not good). > I also added a pyximport.unsinstall() function (so it's possible to > change options of the importer). Can't you simply use **kwargs instead of ext_opts? -- -- Giovanni Bajo Develer S.r.l. http://www.develer.com _______________________________________________ Cython-dev mailing list Cython-dev <at> codespeak.net http://codespeak.net/mailman/listinfo/cython-dev(Continue reading)
- Presumably robust, efficient and numerically accurate.
- Citable publication.
- Parallel implementations are available (though I'm unsure how that will play
with a Cython callback)
I'd be very grateful if you could recommend a strategy for this use case, or
suggest other options. I include some more detail below in case you're
interested. As for the mixed-language programming, I can see the following
scenarios:
== Ideal case: f2cy lets me call Fortran library from Cython ==
(f2cy is described at fortrancython.wordpress.com.)
Then I could do, in principle:
cimport f2cy
import my_model # heavy initialization goes here
RSS Feed