![](https://secure.gravatar.com/avatar/73f4e1ffd23622a339c1c9303615d7fe.jpg?s=120&d=mm&r=g)
A colleague of mine wants to write some numpy extension code. I pointed him to lots of examples in the matplotlib src dir, but the build environment is more complicated than he needs with all the numpy/numeric/numarray switches, etc. Does someone have the basic "hello world" of numpy extensions that includes src code and a basic setup.py that I can pass on to him. It might be nice to include something like that in a numpy "examples" directory. JDH
![](https://secure.gravatar.com/avatar/5c7407de6b47afcd3b3e2164ff5bcd45.jpg?s=120&d=mm&r=g)
A Dijous 30 Novembre 2006 20:14, John Hunter escrigué:
Hi, In case your colleague is going to use Pyrex to do her extensions (which I do recommend, specially for naive users), you can find some simple but nice examples in the numpy/doc/pyrex/ directory of the NumPy distribution. Also interesting for beginners is: http://www.scipy.org/Cookbook/Pyrex_and_NumPy HTH, --
![](https://secure.gravatar.com/avatar/5c7407de6b47afcd3b3e2164ff5bcd45.jpg?s=120&d=mm&r=g)
A Dijous 30 Novembre 2006 20:14, John Hunter escrigué:
Hi, In case your colleague is going to use Pyrex to do her extensions (which I do recommend, specially for naive users), you can find some simple but nice examples in the numpy/doc/pyrex/ directory of the NumPy distribution. Also interesting for beginners is: http://www.scipy.org/Cookbook/Pyrex_and_NumPy HTH, --
participants (2)
-
Francesc Altet
-
John Hunter