-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·148 lines (136 loc) · 4.31 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
137
138
139
140
141
142
143
144
145
146
147
148
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import re
from setuptools import setup
# PyFR version
vfile = open('pyfr/_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 pyfr/_version.py')
# Modules
modules = [
'pyfr.backends',
'pyfr.backends.base',
'pyfr.backends.cuda',
'pyfr.backends.cuda.kernels',
'pyfr.backends.hip',
'pyfr.backends.hip.kernels',
'pyfr.backends.opencl',
'pyfr.backends.opencl.kernels',
'pyfr.backends.openmp',
'pyfr.backends.openmp.kernels',
'pyfr.integrators',
'pyfr.integrators.dual',
'pyfr.integrators.dual.phys',
'pyfr.integrators.dual.pseudo',
'pyfr.integrators.dual.pseudo.kernels',
'pyfr.integrators.std',
'pyfr.integrators.std.kernels',
'pyfr.plugins',
'pyfr.quadrules',
'pyfr.readers',
'pyfr.partitioners',
'pyfr.solvers',
'pyfr.solvers.aceuler',
'pyfr.solvers.aceuler.kernels',
'pyfr.solvers.aceuler.kernels.bcs',
'pyfr.solvers.aceuler.kernels.rsolvers',
'pyfr.solvers.acnavstokes',
'pyfr.solvers.acnavstokes.kernels',
'pyfr.solvers.acnavstokes.kernels.bcs',
'pyfr.solvers.base',
'pyfr.solvers.baseadvec',
'pyfr.solvers.baseadvec.kernels',
'pyfr.solvers.baseadvecdiff',
'pyfr.solvers.baseadvecdiff.kernels',
'pyfr.solvers.euler',
'pyfr.solvers.euler.kernels',
'pyfr.solvers.euler.kernels.bcs',
'pyfr.solvers.euler.kernels.rsolvers',
'pyfr.solvers.navstokes',
'pyfr.solvers.navstokes.kernels',
'pyfr.solvers.navstokes.kernels.bcs',
'pyfr.writers'
]
# Tests
tests = [
'pyfr.tests'
]
# Data
package_data = {
'pyfr.backends.cuda.kernels': ['*.mako'],
'pyfr.backends.hip.kernels': ['*.mako'],
'pyfr.backends.opencl.kernels': ['*.mako'],
'pyfr.backends.openmp.kernels': ['*.mako'],
'pyfr.integrators.dual.pseudo.kernels': ['*.mako'],
'pyfr.integrators.std.kernels': ['*.mako'],
'pyfr.integrators': ['schemes/*.txt'],
'pyfr.quadrules': [
'hex/*.txt',
'line/*.txt',
'pri/*.txt',
'pyr/*.txt',
'quad/*.txt',
'tet/*.txt',
'tri/*.txt'
],
'pyfr.solvers.aceuler.kernels': ['*.mako'],
'pyfr.solvers.aceuler.kernels.bcs': ['*.mako'],
'pyfr.solvers.aceuler.kernels.rsolvers': ['*.mako'],
'pyfr.solvers.acnavstokes.kernels': ['*.mako'],
'pyfr.solvers.acnavstokes.kernels.bcs': ['*.mako'],
'pyfr.solvers.baseadvec.kernels': ['*.mako'],
'pyfr.solvers.baseadvecdiff.kernels': ['*.mako'],
'pyfr.solvers.euler.kernels': ['*.mako'],
'pyfr.solvers.euler.kernels.bcs': ['*.mako'],
'pyfr.solvers.euler.kernels.rsolvers': ['*.mako'],
'pyfr.solvers.navstokes.kernels': ['*.mako'],
'pyfr.solvers.navstokes.kernels.bcs': ['*.mako'],
'pyfr.tests': ['*.npz']
}
# Hard dependencies
install_requires = [
'gimmik ~= 3.0',
'h5py >= 2.10',
'mako >= 1.0.0',
'mpi4py >= 3.1.0',
'numpy >= 1.20',
'platformdirs >= 2.2.0',
'pytools >= 2016.2.1'
]
# Scripts
console_scripts = [
'pyfr = pyfr.__main__:main'
]
# Info
classifiers = [
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Topic :: Scientific/Engineering'
]
long_description = '''PyFR is an open-source Python based framework for
solving advection-diffusion type problems on streaming architectures
using the Flux Reconstruction approach of Huynh. The framework is
designed to solve a range of governing systems on mixed unstructured
grids containing various element types. It is also designed to target a
range of hardware platforms via use of an in-built domain specific
language derived from the Mako templating engine.'''
setup(name='pyfr',
version=version,
description='Flux Reconstruction in Python',
long_description=long_description,
author='Imperial College London',
author_email='[email protected]',
url='http://www.pyfr.org/',
license='BSD',
keywords='Math',
packages=['pyfr'] + modules + tests,
package_data=package_data,
entry_points={'console_scripts': console_scripts},
python_requires='>=3.9',
install_requires=install_requires,
classifiers=classifiers)