-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
45 lines (39 loc) · 1.1 KB
/
setup.py
File metadata and controls
45 lines (39 loc) · 1.1 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
import os
import subprocess
from pathlib import Path
from setuptools import setup, find_packages
matersdk_root_dir:str = Path(__file__).parent.absolute()
### Part . Set up nblist
nblist_name:str = "nblist"
nblist_bind_dir:str = os.path.join(matersdk_root_dir, "source", "nblist", "bind")
nblist_bind_gen_dir:str = os.path.join(nblist_bind_dir, "gen")
subprocess.call([
"mkdir", "-p",
nblist_bind_gen_dir
])
subprocess.call([
"python",
"{0}".format( os.path.join(nblist_bind_dir, "setup.py") ),
"build_ext",
"--build-lib={0}".format( nblist_bind_gen_dir )
])
### Part . Set up matersdk
setup(
name="matersdk",
version="v1.0",
author="Liu Hanyu && LONXUN QUANTUM",
author_email="domainofbuaa@gmail.com",
url="https://github.com/lhycms/MaterSDK",
packages=find_packages(),
include_package_data=True,
install_requires=[
"pymatgen>=2022.11.7",
"numpy>=1.23.5",
"prettytable>=3.5.0",
#"dpdata>=0.2.13",
"click>=8.1.3",
"joblib>=1.2.0",
"h5py>=3.8.0",
"pybind11>=2.11.1",
]
)