From f00091f340122f3fc0a3c6d7da2aff8a83f5506d Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Sun, 16 Aug 2009 00:25:59 -0700 Subject: Beginnings of a Python extension. --- lang_ext/python/setup.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lang_ext/python/setup.py (limited to 'lang_ext/python/setup.py') diff --git a/lang_ext/python/setup.py b/lang_ext/python/setup.py new file mode 100644 index 0000000..de937c4 --- /dev/null +++ b/lang_ext/python/setup.py @@ -0,0 +1,11 @@ +from distutils.core import setup, Extension +setup(name='upb', + version='0.1', + ext_modules=[Extension('upb.definition', ['definition.c'], + include_dirs=['../../src'], + define_macros=[("UPB_USE_PTHREADS", 1), + ("UPB_UNALIGNED_READS_OK", 1)], + library_dirs=['../../src'], + libraries=['upb'] + )], + ) -- cgit v1.2.3