-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup-charmodel.py
28 lines (27 loc) · 1.08 KB
/
setup-charmodel.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
from distutils.core import setup
from distutils.extension import Extension
setup(
name = "charmodel",
ext_modules = [
Extension(
name="charmodel",
library_dirs=['.'],
libraries=['cdb'],
sources=["py-recur-text.c", "charmodel-multi-predict.c",
"charmodel-predict.c", "charmodel-init.c", "recur-nn.c",
"recur-nn-io.c", "recur-nn-init.c"],
depends=["charmodel.h", "pgm_dump.h", "badmaths.h",
"charmodel-helpers.h", "path.h", "py-recur-text.h",
"recur-common.h", "recur-nn.h", "colour.h"], # ..., etc.
include_dirs = ["."],
define_macros = [('_GNU_SOURCE', None),
('VECTOR', None)],
extra_compile_args=['-march=native', '-ggdb', '-std=gnu11', '-I.',
'-Wall', '-O3', '-ffast-math', '-fno-inline',
'-DVECTOR',
'-DPIC',
],
language="c"
)
]
)