-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
71 lines (58 loc) · 2.07 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
from setuptools import setup, Extension
from Cython.Build import cythonize
# I suppress some warnings here since Cython produces quite a lot without real reason.
ecadef = ['-O3', '-Wunused-but-set-variable', '-Wsign-compare']
compdir = {'boundscheck': False, 'nonecheck': False, 'wraparound': False, 'cdivision': True,
'profile': False, 'infer_types': False, 'binding': True, 'language_level' : '3'}
extensions = [
Extension('openAbel.abel.base',
sources=['openAbel/abel/base.pyx'],
extra_compile_args = ecadef,
),
Extension('openAbel.abel.hansenLaw',
sources=['openAbel/abel/hansenLaw.pyx'],
extra_compile_args = ecadef,
),
Extension('openAbel.abel.trap',
sources=['openAbel/abel/trap.pyx'],
extra_compile_args = ecadef,
),
Extension('openAbel.abel.fmm',
sources=['openAbel/abel/fmm.pyx'],
extra_compile_args = ecadef,
),
Extension('openAbel.abel.wrap',
sources=['openAbel/abel/wrap.pyx'],
extra_compile_args = ecadef,
),
Extension('openAbel.constants',
sources=['openAbel/constants.pyx'],
extra_compile_args = ecadef,
),
Extension('openAbel.helper',
sources=['openAbel/helper.pyx'],
extra_compile_args = ecadef,
),
Extension('openAbel.mathFun',
sources=['openAbel/mathFun.pyx'],
extra_compile_args = ecadef,
)
]
vers = '0.6'
setup(name = 'openAbel',
version = vers,
packages = ['openAbel',
'openAbel.abel'],
package_data={'openAbel': ['*.pxd'],
'openAbel.abel': ['*.pxd','coeffsData/*']},
ext_modules = cythonize(extensions, compiler_directives = compdir)
)
logoArt = """
_ _ _
___ _ __ ___ _ _ /_\ | |__ ___| |
/ _ \ '_ \/ -_) ' \ / _ \| '_ \/ -_) |
\___/ .__/\___|_||_/_/ \_\_.__/\___|_|
|_|
openAbel """ + vers + """ Copyright (C) 2016-2020 Oliver Sebastian Haas
"""
print(logoArt)