forked from qcscine/sparrow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
38 lines (35 loc) · 1.36 KB
/
conanfile.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
import sys
from dev.conan.base import ScineConan
class ScineSparrowConan(ScineConan):
name = "scine_sparrow"
version = "3.1.0"
url = "https://github.com/qcscine/sparrow"
description = """Sparrow is a code for fast semiemprical quantum chemical calculations.
It provides the methods such as MNDO, AM1, RM1, PM3, PM6, DFTB0, DFTB2, and DFTB3.
Sparrow can calculate electronic energies as well as nuclear gradients and Hessians."""
options = {
"python": [True, False],
"tests": [True, False],
"coverage": [True, False],
"microarch": ["detect", "none"],
"python_version": "ANY"
}
python_version_string = str(sys.version_info.major) + \
"." + str(sys.version_info.minor)
default_options = {
"python": False,
"tests": False,
"coverage": False,
"microarch": "none",
"python_version": python_version_string
}
exports = "dev/conan/*.py"
exports_sources = ["dev/cmake/*", "src/*", "CMakeLists.txt",
"README.rst", "LICENSE.txt", "dev/conan/hook.cmake",
"dev/conan/glue/*"]
build_requires = "cereal/1.3.0"
requires = "scine_utilities/6.0.0"
cmake_name = "Sparrow"
def package_info(self):
super().package_info()
self.cpp_info.components["Sparrow"].libs = ["sparrow.module.so"]