-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·136 lines (112 loc) · 3.48 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
from setuptools import setup
import sys
# Python version
if sys.version_info[:2] < (3, 3):
print('DGFS requires Python 3.3 or newer')
sys.exit(-1)
# DGFS version
vfile = open('dgfs1D/_version.py').read()
vsrch = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", vfile, re.M)
if vsrch:
version = vsrch.group(1)
else:
print('Unable to find a version string in dgfs1D/_version.py')
# Modules
modules = [
'dgfs1D.sphericaldesign',
'dgfs1D.std',
'dgfs1D.std.kernels',
'dgfs1D.std.kernels.bcs',
'dgfs1D.std.kernels.scattering',
'dgfs1D.bi',
'dgfs1D.bi.kernels',
'dgfs1D.bi.kernels.bcs',
'dgfs1D.bi.kernels.scattering',
'dgfs1D.astd',
'dgfs1D.astd.kernels',
'dgfs1D.astd.kernels.scattering',
'dgfs1D.porous',
'dgfs1D.porous.kernels',
'dgfs1D.porous.kernels.wallop',
'dgfs3D.astd',
'dgfs3D.astd.kernels',
'dgfs3D.astd.kernels.bcs',
]
# Data
package_data = {
'dgfs1D.sphericaldesign': [
'symmetric/*.txt'
],
'dgfs1D.std.kernels': ['*.mako'],
'dgfs1D.std.kernels.bcs': ['*.mako'],
'dgfs1D.std.kernels.scattering': ['*.mako'],
'dgfs1D.bi.kernels': ['*.mako'],
'dgfs1D.bi.kernels.bcs': ['*.mako'],
'dgfs1D.bi.kernels.scattering': ['*.mako'],
'dgfs1D.astd.kernels': ['*.mako'],
'dgfs1D.astd.kernels.scattering': ['*.mako'],
'dgfs3D.astd.kernels': ['*.mako'],
'dgfs3D.astd.kernels.bcs': ['*.mako'],
'dgfs3D.astd.kernels.initconds': ['*.mako'],
}
# Hard dependencies
install_requires = [
'appdirs >= 1.4.0',
'gimmik >= 2.0',
'h5py >= 2.6',
'mako >= 1.0.0',
'numpy >= 1.8',
'pytools >= 2016.2.1',
'pycuda >= 2015.1',
'mpi4py >= 2.0'
]
# Soft dependencies
extras_require = {
}
# Scripts
console_scripts = [
'dgfsStd1D = dgfs1D.std.std:__main__',
'dgfsBi1D = dgfs1D.bi.bi:__main__',
'dgfsAstd1D = dgfs1D.astd.astd:__main__',
'dgfsABstd1D = dgfs1D.astd.abstd:__main__',
#'dgfsABEstd1D = dgfs1D.astd.abstde:__main__',
#'dgfsABE2std1D = dgfs1D.astd.abstde2:__main__',
#'dgfsPorous1D = dgfs1D.porous.porous:__main__',
#'dgfsPorous21D = dgfs1D.porous.porous2:__main__',
#'adgfsStd1D = dgfs1D.std.astd2:__main__',
#'dgfsABE2std3D = dgfs3D.astd.abstde2:__main__',
#'dgfsAstd1D_ = dgfs1D.astd.astd_:__main__',
#'dgfsABstd1D_ = dgfs1D.astd.abstd_:__main__',
#'dgfsAstd1D_2 = dgfs1D.astd.astd_2:__main__',
#'dgfsABstd1D_2 = dgfs1D.astd.abstd_2:__main__',
#'dgfsAstd1D_3 = dgfs1D.astd.astd_3:__main__',
#'dgfsABstd1D_3 = dgfs1D.astd.abstd_3:__main__',
]
# Info
classifiers = [
'License :: GNU GPL v2',
'Programming Language :: Python',
'Programming Language :: Python :: 3.3',
'Topic :: Scientific/Engineering'
]
long_description = '''dgfs1D is an open-source minimalistic implementation of
Discontinuous Galerkin Fast Spectral method in one dimension'''
setup(name='dgfs1D',
version=version,
description='Discontinuous Galerkin Fast Spectral in One Dimension',
long_description=long_description,
author='Purdue University, West Lafayette',
author_email='[email protected]',
url='http://www.github.com/jaisw7',
license='GNU GPL v2',
keywords='Applied Mathematics',
packages=['dgfs1D'] + modules,
package_data=package_data,
entry_points={'console_scripts': console_scripts},
install_requires=install_requires,
extras_require=extras_require,
classifiers=classifiers
)