diff options
author | Chris Dyer <cdyer@cs.cmu.edu> | 2012-06-05 15:47:09 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cs.cmu.edu> | 2012-06-05 15:47:09 -0400 |
commit | 6d95c0b1edea38a972c287793fabae8f7f0eea1a (patch) | |
tree | a70c0aaddf6e3313ebe349b6a90542ab5359b3be /python/setup.py | |
parent | 76950778554a836230b68aa1ba517bc19521a66f (diff) | |
parent | 57d8aeaf862bad8516e8aa87eca10fdb75bdcb3a (diff) |
Merge branch 'master' of github.com:redpony/cdec
Diffstat (limited to 'python/setup.py')
-rw-r--r-- | python/setup.py | 20 |
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'] +) |