-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
67 lines (65 loc) · 1.85 KB
/
setup.py
File metadata and controls
67 lines (65 loc) · 1.85 KB
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
import os
import subprocess
from setuptools import setup, find_packages
from setuptools.command.develop import develop
class CustomDevelopCommand(develop):
"""Custom develop command to run compile.sh scripts."""
def run(self):
for folder in ["eslib/fortran/rdf", "eslib/fortran/msd"]:
script_path = os.path.join(folder, "compile.sh")
if os.path.isfile(script_path):
print(f"Running {script_path} ...")
# Run 'bash compile.sh' inside folder, so script_path inside folder is just 'compile.sh'
subprocess.check_call(["bash", "compile.sh"], cwd=folder)
else:
print(f"Warning: {script_path} not found.")
super().run()
setup(
name="eslib",
version="1.0.0",
description="ESLIB installation and setup.",
long_description=open("README.md").read(),
long_description_content_type="text/markdown",
author="Elia Stocco",
author_email="eliastoccol@gmail.com",
license="MIT",
keywords=["materials", "science", "ML"],
classifiers=[
"Programming Language :: Python :: 3",
"Operating System :: OS Independent"
],
python_requires=">=3.7",
install_requires=[
"numpy",
"colorama",
"ase",
"chemiscope",
"icecream",
"matplotlib",
"matscipy",
"pandas",
"pint",
"scikit-learn",
"scipy>=1.2.3",
"seekpath",
"skmatter",
"spglib",
"tqdm",
"xarray",
"pytest",
"phonopy",
"uncertainties",
"meson",
"ninja"
],
extras_require={
"mace": ["mace-torch"],
"dev": ["pytest"],
},
packages=find_packages(include=["eslib*"]),
include_package_data=True,
zip_safe=False,
cmdclass={
'develop': CustomDevelopCommand,
},
)