-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathsetup.py
More file actions
27 lines (24 loc) · 675 Bytes
/
setup.py
File metadata and controls
27 lines (24 loc) · 675 Bytes
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
# To build the cython extensions use:
# python setup.py build_ext --inplace
#
from distutils.core import setup
from distutils.extension import Extension
from Cython.Build import cythonize
import numpy as np
extensions = [
Extension(
'ou_process',
['ou_process.pyx'],
include_dirs=[np.get_include()],
# Uncomment the following line for profiling
define_macros=[('CYTHON_TRACE', '1')],
)
]
setup(
name="Cyton functions to simulate an OU process",
ext_modules=cythonize(
extensions,
# Uncomment the following line for profiling
compiler_directives={'linetrace': True, 'binding': True},
),
)