diff options
Diffstat (limited to 'python/setup.py')
-rw-r--r-- | python/setup.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/python/setup.py b/python/setup.py index 9ae4a35c..7be976e8 100644 --- a/python/setup.py +++ b/python/setup.py @@ -32,7 +32,7 @@ else: BOOST_PROGRAM_OPTIONS = 'boost_program_options' ext_modules = [ - Extension(name='_cdec', + Extension(name='cdec._cdec', sources=['src/_cdec.cpp'], include_dirs=INC, library_dirs=LIB, @@ -40,13 +40,14 @@ ext_modules = [ 'cdec', 'utils', 'mteval', 'training', 'klm', 'klm_util'], extra_compile_args=['-DHAVE_CONFIG_H'], extra_link_args=LINK_ARGS), - Extension(name='_cdec_sa', - sources=['src/sa/_cdec_sa.c', 'src/sa/strmap.cc']) + Extension(name='cdec.sa._sa', + sources=['src/sa/_sa.c', 'src/sa/strmap.cc']) ] setup( name='cdec', ext_modules=ext_modules, requires=['configobj'], - packages=['cdec', 'cdec.sa'] + packages=['cdec', 'cdec.sa'], + package_dir={'': 'pkg'} ) |