forked from eranroz/HspellPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
38 lines (34 loc) · 1.15 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
from distutils.core import setup
from distutils.extension import Extension
try:
from Cython.Distutils import build_ext
use_cython = True
except ImportError:
use_cython = False
cmdclass = {}
if use_cython:
ext_modules = [Extension("HspellPy",
["pyhspell.pyx"],
language='c',
library_dirs=['/usr/local/lib'],
include_dirs=['/usr/local/include'],
libraries=['hspell'],
)]
cmdclass = {'build_ext': build_ext}
else:
ext_modules = [Extension("HspellPy",
["pyhspell.c"],
language='c',
library_dirs=['/usr/local/lib'],
include_dirs=['/usr/local/include'],
libraries=['hspell'],
)]
setup(name='HspellPy',
cmdclass=cmdclass,
ext_modules=ext_modules,
author='Eranroz',
author_email='[email protected]',
url='https://github.com/eranroz/HspellPy',
description='Python wrapper for Hspell',
version='0.1.1'
)