diff options
author | Armin Rigo <arigo@tunes.org> | 2016-01-07 18:20:35 +0100 |
---|---|---|
committer | Armin Rigo <arigo@tunes.org> | 2016-01-07 18:20:35 +0100 |
commit | 2a94d309372d6d888b2d73b48bf62c08b3b37731 (patch) | |
tree | 46da3e34344dde33d7de81b8ec0d7bbf3f450cb7 /demo | |
parent | 4210a4090e1dbe977da62fd23ece93a561f523b8 (diff) | |
download | cffi-2a94d309372d6d888b2d73b48bf62c08b3b37731.tar.gz |
Fix ffi.compile() to automatically link with the python library
Diffstat (limited to 'demo')
-rw-r--r-- | demo/embedding.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/demo/embedding.py b/demo/embedding.py index 279d6f2..f20b4e4 100644 --- a/demo/embedding.py +++ b/demo/embedding.py @@ -18,12 +18,6 @@ ffi.embedding_init_code(""" return x + y """) -ffi.set_source("_embedding_cffi", """ -""") - -#ffi.compile() -- should be fixed to do the right thing +ffi.set_source("_embedding_cffi", "") -ffi.emit_c_code('_embedding_cffi.c') -# then call the compiler manually with the proper options, like: -# gcc -shared -fPIC _embedding_cffi.c -o _embedding_cffi.so -lpython2.7 -# -I/usr/include/python2.7 +ffi.compile(verbose=True) |