From 57d8aeaf862bad8516e8aa87eca10fdb75bdcb3a Mon Sep 17 00:00:00 2001 From: Victor Chahuneau Date: Mon, 4 Jun 2012 02:16:59 -0400 Subject: Python module: initial version --- python/setup.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 python/setup.py (limited to 'python/setup.py') diff --git a/python/setup.py b/python/setup.py new file mode 100644 index 00000000..756de088 --- /dev/null +++ b/python/setup.py @@ -0,0 +1,20 @@ +from distutils.core import setup +from distutils.extension import Extension +from Cython.Distutils import build_ext + +ext_modules = [ + Extension(name='_cdec', + sources=['src/_cdec.pyx'], + language='C++', + include_dirs=['..', 'src/', '../decoder', '../utils'], + library_dirs=['../decoder', '../utils', '../mteval', '../klm/lm', '../klm/util'], + libraries=['boost_program_options-mt', 'z', + 'cdec', 'utils', 'mteval', 'klm', 'klm_util']) +] + +setup( + name='cdec', + cmdclass={'build_ext': build_ext}, + ext_modules=ext_modules, + packages=['cdec', 'cdec.scfg'] +) -- cgit v1.2.3