summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
Diffstat (limited to 'demo')
-rw-r--r--demo/embedding.py10
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)