-
Notifications
You must be signed in to change notification settings - Fork 55
/
setup.py
48 lines (44 loc) · 1.61 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
import os
from setuptools import find_packages, setup
_CURRENT_DIR = os.path.dirname(os.path.abspath(__file__))
def get_version():
with open(os.path.join(_CURRENT_DIR, "src", "jaxfluids", "__init__.py")) as file:
for line in file:
if line.startswith("__version__"):
return line[line.find("=") + 1:].strip(' \'"\n')
__version__ = get_version()
if __name__=='__main__':
setup(
name="jaxfluids",
version=__version__,
description="Fully-differentiable CFD solver for compressible two-phase flows.",
author="Deniz Bezgin, Aaron Buhendwa",
author_email="[email protected], [email protected]",
long_description=open(os.path.join(_CURRENT_DIR, "README.MD")).read(),
long_description_content_type='text/markdown',
packages=find_packages(where="src"),
package_dir={"": "src"},
python_requires=">=3.11",
install_requires=[
"flax",
"gitpython",
"h5py",
"jax",
"jaxlib",
"matplotlib",
"numpy",
"optax",
],
extras_require={
# Use cuda to install CUDA version, use as follows:
# $ pip install jaxfluids[cuda] -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
"cuda": ["jaxlib"],
},
url="https://github.com/tumaer/JAXFLUIDS",
license="MIT",
classifiers=[
"Programming Language :: Python :: 3"
"License :: OSI Approved :: MIT License"
"Operating System :: OS Independent"
]
)