Commit 44bc27c8 by Gael varoquaux

Complete README

parent cd59daea
......@@ -14,18 +14,27 @@ Note that the ownership of the memory is then handed off to the Python
VM, and there is no control of when Python will deallocate the memory. If
the memory is still being used by the C code, please refer to the
following blog post by Travis Oliphant:
http://blog.enthought.com/python/numpy-arrays-with-pre-allocated-memory
To build it you will need Cython, numpy, and a C compiler.
http://blog.enthought.com/python/numpy-arrays-with-pre-allocated-memory
Run::
You will need Cython, numpy, and a C compiler.
To build the C extension in-place run::
$ python setup.py build_ext --i
to build the C extension in-place.
To test the C-Python bindings, run the `test.py` file.
================= =========================================================
Files
================= =========================================================
c_code.c The C code to bind. Knows nothing about Python
cython_wrapper.c The Cython code implementing the binding
setup.py The configure/make/install script
test.py Python code using the C extension
================= =========================================================
____
:Author: Gael Varoquaux
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment