forked from openecloud/openecloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (67 loc) · 3.52 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
from distutils.core import setup
from distutils.extension import Extension
from Cython.Distutils import build_ext
import numpy
import sys
include_dirs = [numpy.get_include()]
library_dirs = []
include_dirs.append("/usr/local/include/")
library_dirs.append("/usr/local/lib/")
extra_compile_args = ["-O3"] # Use high degree of compiler optimization.
ecaGSL = ["-O3", "-lgsl", "-lcblas"] # Some modules use GSL.
elaGSL = ["-lgsl", "-lcblas"]
setup(
cmdclass = {'build_ext': build_ext},
ext_modules = [
Extension("magneticField", ["magneticField.pyx"],
include_dirs=include_dirs,
extra_compile_args=extra_compile_args),
Extension("particleEmitter", ["particleEmitter.pyx"],
include_dirs=include_dirs,
extra_compile_args=extra_compile_args),
Extension("particles", ["particles.pyx"],
include_dirs=include_dirs,
extra_compile_args=extra_compile_args),
Extension("poissonSolver", ["poissonSolver.pyx"],
include_dirs=include_dirs,
extra_compile_args=extra_compile_args),
Extension("particleBoundary", ["particleBoundary.pyx"],
include_dirs=include_dirs,
extra_compile_args=extra_compile_args),
Extension("kdTree", ["kdTree.pyx"],
include_dirs=include_dirs,
extra_compile_args=extra_compile_args),
Extension("particleManagement", ["particleManagement.pyx"],
include_dirs=include_dirs,
extra_compile_args=extra_compile_args),
Extension("grid", ["grid.pyx"],
include_dirs=include_dirs,
extra_compile_args=extra_compile_args),
Extension("specFun", ["specFun.pyx"],
include_dirs=include_dirs,
library_dirs=library_dirs,
extra_link_args=elaGSL,
extra_compile_args=ecaGSL),
Extension("randomGen", ["randomGen.pyx"],
include_dirs=include_dirs,
library_dirs=library_dirs,
extra_link_args=elaGSL,
extra_compile_args=ecaGSL),
Extension("constants", ["constants.pyx"],
include_dirs=include_dirs),
Extension("util", ["util.pyx"],
include_dirs=include_dirs,
extra_compile_args=extra_compile_args)
]
)
logoArt = """
______ _____ _ ____ _ _ _____
| ____/ ____| | / __ \| | | | __ \
___ _ __ ___ _ __ | |__ | | | | | | | | | | | | | |
/ _ \| '_ \ / _ \ '_ \| __|| | | | | | | | | | | | | |
| (_) | |_) | __/ | | | |___| |____| |___| |__| | |__| | |__| |
\___/| .__/ \___|_| |_|______\_____|______\____/ \____/|_____/
| |
|_|
"""
print logoArt