-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
58 lines (53 loc) · 1.35 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
import setuptools
ver_globals = {}
with open("pochoir/version.py") as fp:
exec(fp.read(), ver_globals)
version = ver_globals["version"]
extras = {
"hdf5":[
"h5py", # support HDF5 files or
],
"plots":[
"matplotlib",
],
"torch":[
"torch", # for CPU/GPU
"torchdiffeq", # torch rk
],
"cupy":[ # fastest GPU for FDM
"cupy",
],
"numba":[ # JIT for CPU/GPU
"numba",
],
"gencfg": [ # for gencfg command
"jsonnet",
"anyconfig"
],
"vtk":[
"pyevtk", # for optional export to VTK
"pytest",
],
}
extras['full'] = [x for v in extras.values() for x in v]
setuptools.setup(
name="pochoir",
version=version,
author="Brett Viren",
author_email="[email protected]",
description="Calculate response functions with FDM field calculations",
url="https://brettviren.github.io/pochoir",
packages=setuptools.find_packages(),
python_requires='>=3.5',
install_requires=[
"click", # CLI
"numpy", # .npz, need numpy in general
],
extras_require=extras,
entry_points = dict(
console_scripts = [
'pochoir = pochoir.__main__:main',
]
),
#include_package_data=True,
)