Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
gists
/
cython-cwrapper
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
44bc27c8
authored
Sep 28, 2011
by
Gael varoquaux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Complete README
parent
cd59daea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
00README.rst
+13
-4
No files found.
00README.rst
View file @
44bc27c8
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment