On Tue, Oct 12, 2010 at 12:45 PM, Robert Cimrman cimr...@ntc.zcu.cz wrote:
On Tue, 12 Oct 2010, Logan Sorenson wrote:
On Tue, Oct 12, 2010 at 10:09 AM, Robert Cimrman cimr...@ntc.zcu.cz wrote:
On Tue, 12 Oct 2010, Logan Sorenson wrote:
Hi,
This is cool. I checked out their git repo yesterday to play around a bit.
Apparently there is a way to generate a standalone bentomaker script by running python tools/singledist.py in the bento source directory. This is the preferred way since bento is still evolving [1].
Does it mean the standalone script could be bundled with our releases?
Yes, that's right! According to this discussion thread, David Cournape plans to keep this feature [2].
A self-contained archive that can install itself sounds very good to me :)
I'm going to keep playing with this and cython to see if I can get something working.
Great, thanks!
No problem! At [2], David recommends looking into his example of building/packaging nipy with bento. He has some cython and c extension examples there. Based off that, I took a numpy example from cython and came up with [3]. It's just a really simple example of how to work with cython/numpy/bento. Just run "./bentomaker configure; ./bentomaker build". One trick is that the bscript file is needed to pick up the cython builder.
Good news for everyone! The example works for me. Not that I really understand it... I will read more about bento, just cloned it.
Yes, the example is mostly a throwaway just to illustrate that we can build numpy-based cython extensions with bento. It doesn't really do much. :)
So I guess the next step is to develop bento.info and bscript files for SfePy. There is a convert command in the bentomaker for converting an existing distutils setup.py, but it didn't seem to work for me when I tried it. Anyway, it should be possible for both standalone bentomaker and setup.py to live side-by-side.
So bento.info describes a project structure (libraries, sources etc), and the hard work, like discovering compilers, is to be done in the bscript files, right?
I am now evaluating the C functions we have in sfepy/fem/extmods/ if they are really needed - already removed a bunch of them, to make the transition easier.
This will make things easier. I have to admit I'm not yet up to speed on the internals, but this is as good a chance to learn as any...
Logan
Sending a virtual beer,
Na zdravĂ!
Enjoy!
r.
[1]
http://github.com/cournape/Bento/issues/issue/37/#issue/37/comment/460936
[2] http://www.mail-archive.com/numpy-discussion@scipy.org/msg27273.html [3] http://github.com/logansorenson/cython_bento
On Mon, Oct 11, 2010 at 3:43 AM, Robert Cimrman cimr...@ntc.zcu.cz wrote:
FYI: new release of Bento.
r.
---------- Forwarded message ---------- Date: Sun, 10 Oct 2010 15:21:42 +0900 From: David Cournapeau cour...@gmail.com Reply-To: SciPy Users List scipy...@scipy.org To: Discussion of Numerical Python numpy-di...@scipy.org, SciPy Users List scipy...@scipy.org Subject: [SciPy-User] [ANN] Bento 0.0.4 release
Hi,
I am pleased to announce the release 0.0.4 for Bento. This release is a significant milestone, as it is able to build both numpy and scipy on some platforms (Linux and mac os x).
The main features are: - New hooks to modify, override compilation options on a per extension basis. - Recursive package description support - Option to generate a python module containing all install paths, to avoid using __file__ without depending on complex tools ala pkg_resources. - Improved documentation - Some work toward python 3 support (does not work yet for complex packages)
Concerning numpy/scipy bento-based builds, a few interesting facts: - amount of code for both numpy/scipy is smaller than scons-based or distutils-based builds. - by playing a bit with options and using clang, you can build a full debug build of numpy in 5-6 seconds, and ~ 40 seconds for scipy on a recent computer. - _bento_build branches for numpy and scipy are found on my account http://github.com/cournape
You can download bento on github: http://github.com/cournape/Bento, and look at the documentation on http://cournape.github.com/Bento/html/index.html.
cheers,
David
-- You received this message because you are subscribed to the Google Groups "sfepy-devel" group. To post to this group, send email to sfepy...@googlegroups.com. To unsubscribe from this group, send email to sfepy-devel...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sfepy-devel?hl=en.
-- You received this message because you are subscribed to the Google Groups "sfepy-devel" group. To post to this group, send email to sfepy...@googlegroups.com. To unsubscribe from this group, send email to sfepy-devel...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sfepy-devel?hl=en.