summaryrefslogtreecommitdiff
path: root/python/setup.py
diff options
context:
space:
mode:
authorVictor Chahuneau <vchahune@cs.cmu.edu>2012-06-04 02:16:59 -0400
committerVictor Chahuneau <vchahune@cs.cmu.edu>2012-06-04 02:16:59 -0400
commit57d8aeaf862bad8516e8aa87eca10fdb75bdcb3a (patch)
tree294dc1d5f6e2c6aed40984adc883160ac79132a2 /python/setup.py
parent43e7813a1001aa84b821f851b29606b6d98a83ac (diff)
Python module: initial version
Diffstat (limited to 'python/setup.py')
-rw-r--r--python/setup.py20
1 files changed, 20 insertions, 0 deletions
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']
+)