summaryrefslogtreecommitdiff
path: root/python/setup.py
blob: 756de0889d9acebdc5e17768d7fb537d1de745f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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']
)