diff options
Diffstat (limited to 'testing/cffi0/snippets/distutils_module')
-rw-r--r-- | testing/cffi0/snippets/distutils_module/setup.py | 7 | ||||
-rw-r--r-- | testing/cffi0/snippets/distutils_module/snip_basic_verify.py | 17 |
2 files changed, 0 insertions, 24 deletions
diff --git a/testing/cffi0/snippets/distutils_module/setup.py b/testing/cffi0/snippets/distutils_module/setup.py deleted file mode 100644 index a4d5551..0000000 --- a/testing/cffi0/snippets/distutils_module/setup.py +++ /dev/null @@ -1,7 +0,0 @@ - -from distutils.core import setup -import snip_basic_verify - -setup( - py_modules=['snip_basic_verify'], - ext_modules=[snip_basic_verify.ffi.verifier.get_extension()]) diff --git a/testing/cffi0/snippets/distutils_module/snip_basic_verify.py b/testing/cffi0/snippets/distutils_module/snip_basic_verify.py deleted file mode 100644 index e8a867e..0000000 --- a/testing/cffi0/snippets/distutils_module/snip_basic_verify.py +++ /dev/null @@ -1,17 +0,0 @@ - -from cffi import FFI -import sys - -ffi = FFI() -ffi.cdef(""" // some declarations from the man page - struct passwd { - char *pw_name; - ...; - }; - struct passwd *getpwuid(int uid); -""") -C = ffi.verify(""" // passed to the real C compiler -#include <sys/types.h> -#include <pwd.h> -""", libraries=[], # or a list of libraries to link with - force_generic_engine=hasattr(sys, '_force_generic_engine_')) |