forked from Cascella-Group-UiO/HyMD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
77 lines (71 loc) · 2.33 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
import setuptools # noqa: F401, https://stackoverflow.com/a/55358607/4179419
from numpy.distutils.core import setup, Extension
def find_version(path):
import re
s = open(path, 'rt').read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]",
s, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Version not found")
with open('README.md', 'r') as in_file:
readme = in_file.read()
force_kernels = Extension(
name="force_kernels",
sources=[
"hymd/compute_bond_forces.f90",
"hymd/compute_bond_forces__double.f90",
"hymd/compute_angle_forces.f90",
"hymd/compute_angle_forces__double.f90",
"hymd/compute_dihedral_forces.f90",
"hymd/compute_dihedral_forces__double.f90",
"hymd/dipole_reconstruction.f90",
"hymd/dipole_reconstruction__double.f90",
]
)
setup(
name="hymd",
author="Morten Ledum",
author_email="[email protected]",
url="https://github.com/Cascella-Group-UiO/HyMD",
description="Massively parallel hybrid particle-field MD",
long_description=readme,
long_description_content_type="text/markdown",
license="LGPLv3",
packages=["hymd"],
version=find_version("hymd/version.py"),
ext_modules=[force_kernels],
setup_requires=[
"cython",
"numpy",
"mpi4py",
],
install_requires=[
"cython",
"h5py",
"mpi4py",
"mpsort",
"networkx",
"numpy",
"pfft-python",
"pmesh",
"sympy",
"tomli",
],
python_requires=">=3.6",
classifiers=[
"Development Status :: 5 - Production/Stable",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", # noqa: E501
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Fortran",
"Topic :: Scientific/Engineering :: Chemistry",
"Topic :: Scientific/Engineering :: Physics",
],
)