-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsetup.py
31 lines (30 loc) · 1.08 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
import numpy
from setuptools import setup, Extension
setup(
name="chainer_ctc",
version="1.0",
description="Fast CTC for Chainer + wrapper for Baidus warp-ctc",
platforms=['Linux'],
classifiers=[
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: POSIX :: Linux',
],
author="Jahn Heymann",
packages=['chainer_ctc', 'chainer_ctc.src'],
author_email="[email protected]",
setup_requires=['setuptools_cython', 'Cython >= 0.18'],
ext_modules=[
Extension('chainer_ctc.src.ctc_cpu', ["chainer_ctc/src/ctc_cpu.pyx"],
include_dirs=[numpy.get_include()],
language='c++'),
Extension('chainer_ctc.src.warp_ctc',
["chainer_ctc/src/warp_ctc.pyx"],
include=[numpy.get_include(),
'ctc.h'],
include_dirs=['ext/warp-ctc/include'],
library_dirs=['ext/warp-ctc/build'],
libraries=['warpctc'],
language='c++')
]
)