File: setup.py

package info (click to toggle)
sunpinyin 3.0.0~rc1%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,944 kB
  • sloc: cpp: 13,586; python: 923; makefile: 198
file content (36 lines) | stat: -rw-r--r-- 1,195 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext

setup(
    name='sunpinyin-python',
    version='0.1',
    author = "Yong Sun",
    author_email = "Yong.Sun@Sun.COM",
    url = "http://www.opensolaris.org/os/project/input-method",
    description = "A Python binding of the SunPinyin ngram model",
    long_description = "A Python binding of the SunPinyin ngram model",
    license = "CDDL/LGPLv2.1",

    ext_modules=[
        Extension(
            "pyslm", ["pyslm.pyx", 
                      "../src/slm/slm.cpp"], 
            language="c++", 
            include_dirs=["../src/slm", ".."], 
            define_macros=[("HAVE_CONFIG_H", None)]
        ),
        Extension(
            "pytrie", ["pytrie.pyx", 
                       "../src/portability.cpp", 
                       "../src/lexicon/pytrie.cpp", 
                       "../src/lexicon/pinyin_data.cpp"], 
            language="c++", 
            include_dirs=["../src", "../src/lexicon", ".."], 
            define_macros=[("HAVE_CONFIG_H", None)]
        ),
    ],
    cmdclass = {'build_ext': build_ext}
)

# -*- indent-tabs-mode: nil -*- vim:et:ts=4