forked from NeuroNetMem/PythonPlugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
35 lines (31 loc) · 1.13 KB
/
Copy pathsetup.py
File metadata and controls
35 lines (31 loc) · 1.13 KB
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
from distutils.core import setup, Extension
from Cython.Build import cythonize
import numpy
import runpy
cfg = runpy.run_path('../.config.py')
setup(
name= "test2",
include_dirs=[numpy.get_include(), cfg['PYTHON_PLUGIN_SRC_DIR']],
ext_modules = cythonize(
Extension(
'test2',
sources = ["test2.pyx"],
export_symbols = [
'pluginStartup',
'pluginisready',
'getParamNum',
'getParamConfig',
'pluginFunction',
'eventFunction',
'spikeFunction',
'setIntParam',
'setFloatParam',
'getIntParam',
'getFloatParam',
'updateSettings',
'channelChanged'
]
),
language_level=3
)
)