-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsetup.py
40 lines (35 loc) · 1.24 KB
/
setup.py
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
37
38
39
#!/usr/bin/env python
import sys
from setuptools import setup, Extension
try:
from Cython.Build import cythonize
use_cython = True
except ImportError:
use_cython = False
if use_cython:
ext_modules = cythonize([Extension('doublemetaphone.doublemetaphone',
['doublemetaphone/doublemetaphone.pyx',
'doublemetaphone/double_metaphone.cc'])])
else:
ext_modules = [Extension('doublemetaphone.doublemetaphone',
['doublemetaphone/doublemetaphone.cpp',
'doublemetaphone/double_metaphone.cc'])]
setup(
name="DoubleMetaphone",
version="1.1",
description="Python wrapper for C++ Double Metaphone",
author="Forest Gregg",
author_email="[email protected]",
packages=['doublemetaphone'],
ext_modules=ext_modules,
classifiers=[
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Artistic License",
"Operating System :: POSIX",
"Programming Language :: Cython",
"Programming Language :: Python",
"Topic :: Scientific/Engineering",
"Topic :: Software Development",
],
)