1 from distutils.core import setup
2 from distutils.extension import Extension
3 from Cython.Distutils import build_ext
6 name='sunpinyin-python',
9 author_email = "Yong.Sun@Sun.COM",
10 url = "http://www.opensolaris.org/os/project/input-method",
11 description = "A Python binding of the SunPinyin ngram model",
12 long_description = "A Python binding of the SunPinyin ngram model",
13 license = "CDDL/LGPLv2.1",
17 "pyslm", ["pyslm.pyx",
18 "../src/slm/slm.cpp"],
20 include_dirs=["../src/slm", ".."],
21 define_macros=[("HAVE_CONFIG_H", None)]
24 "pytrie", ["pytrie.pyx",
25 "../src/portability.cpp",
26 "../src/lexicon/pytrie.cpp",
27 "../src/lexicon/pinyin_data.cpp"],
29 include_dirs=["../src", "../src/lexicon", ".."],
30 define_macros=[("HAVE_CONFIG_H", None)]
33 cmdclass = {'build_ext': build_ext}