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
24 lines (22 loc) · 716 Bytes
/
Copy pathsetup.py
File metadata and controls
24 lines (22 loc) · 716 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
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'
]))
)