From 040f7e6ba2e2282b80f332a031b77d7d34b4fc85 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Mon, 24 Aug 2009 21:44:22 -0700 Subject: Significant memory-management refactoring any Python extension. --- lang_ext/python/setup.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'lang_ext/python/setup.py') diff --git a/lang_ext/python/setup.py b/lang_ext/python/setup.py index 66862f3..53cbef1 100644 --- a/lang_ext/python/setup.py +++ b/lang_ext/python/setup.py @@ -1,11 +1,15 @@ from distutils.core import setup, Extension + setup(name='upb', version='0.1', - ext_modules=[Extension('upb.definition', ['definition.c'], - include_dirs=['../../src', '../../descriptor'], - define_macros=[("UPB_USE_PTHREADS", 1), - ("UPB_UNALIGNED_READS_OK", 1)], - library_dirs=['../../src'], - libraries=['upb_pic'] - )], + ext_modules=[ + Extension('upb.cext', ['definition.c', 'pb.c', 'cext.c'], + include_dirs=['../../src', '../../descriptor'], + define_macros=[("UPB_USE_PTHREADS", 1), + ("UPB_UNALIGNED_READS_OK", 1)], + library_dirs=['../../src'], + libraries=['upb_pic'], + ), + ], + packages=['upb'] ) -- cgit v1.2.3