forked from Conedy/Conedy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
73 lines (47 loc) · 2.36 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
#
# Conedy is a scientific tool which allows numerical integration of dynamical networks.
#
# Copyright (C) 2011 Alexander Rothkegel, Henning Dickten, Ferdinand Stolz, Justus Schwabedahl
#
# This file is part of conedy.
#
# Conedy is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>
#!/usr/bin/env python
#setup.py
from distutils.core import setup
from distutils.extension import Extension
import os.path
import sys
from os import system
files = ["neuroPython.cpp", "neuroPythonNodes.cpp", "command.cpp" ,"instruction.cpp", "stdOdeIntegrator.cpp","lyapunov.cpp", "fullNetworkWithNodes.cpp", "generatedNodes.cpp", "globals.cpp", "sdeNode.cpp", "stdSdeIntegrator.cpp","odeNode.cpp", "gslOdeNode.cpp" ,"ioNode.cpp" ,"pulseCoupledPhaseOscillator.cpp","network.cpp" ,"dynNetwork.cpp" ,"createNetwork.cpp", "spatialNetwork.cpp","mapNode.cpp" ,"eventHandler.cpp" ,"node.cpp" ,"priorityQueue.cpp", "dynNode.cpp" ,"gslNoise.cpp" ,"statisticsNetwork.cpp" ,"commandLineArguments.cpp" ]
if sys.platform == "win32" :
include_dirs = ["C:\\Program Files (x86)\\boost\\boost_1_46_1"]
libraries=["gsl", "gslcblas"]
library_dirs=['C:\\Program Files (x86)\\boost\\boost_1_46_1\\lib']
module = Extension("conedy", files, library_dirs=library_dirs,
libraries=libraries,
include_dirs=include_dirs,
depends=[])
module.extra_compile_args = ['/GX', '-DPYTHON', '-DSVN_REV=0.262']
else :
include_dirs = ["/usr/include/boost","."]
libraries=["boost_python","gsl", "gslcblas", "boost_iostreams", "z"]
library_dirs=['/usr//lib']
module = Extension("conedy", files, library_dirs=library_dirs,
libraries=libraries,
include_dirs=include_dirs,
depends=[])
#files =["neuroPython.cpp","spatialNetwork.cpp"]
setup(name="conedy", version="0.262",
ext_modules=[module])