-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
60 lines (56 loc) · 1.66 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
__copyright__ = """This file is part of SCINE Database.
This code is licensed under the 3-clause BSD license.
Copyright ETH Zurich, Department of Chemistry and Applied Biosciences, Reiher Group.
See LICENSE.txt for details.
"""
import sys
from dev.conan.base import ScineConan
class ScineDatabaseConan(ScineConan):
name = "scine_database"
version = "1.4.0"
url = "https://github.com/qcscine/database"
description = """
The SCINE Database is a database wrapper for a MongoDB encoding reaction
networks."""
options = {
"shared": [True, False],
"python": [True, False],
"tests": [True, False],
"coverage": [True, False],
"microarch": ["none", "detect"],
"test_ip": "ANY",
"python_version": "ANY"
}
python_version_string = str(sys.version_info.major) + \
"." + str(sys.version_info.minor)
default_options = {
"shared": True,
"python": False,
"tests": False,
"coverage": False,
"microarch": "none",
"test_ip": "localhost",
"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/*"
]
requires = [
"mongo-cxx-driver/3.6.0",
"eigen/[~=3.3.7]",
"scine_utilities/10.0.0"
]
cmake_name = "Database"
cmake_definitions = {
"TEST_MONGO_DB_IP": lambda self: self.options.test_ip
}
def package_id(self):
del self.info.options.test_ip
super().package_id()