-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup.py
64 lines (56 loc) · 1.83 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
# Copyright (C) 2012 by Alex Brandt <alunduil@alunduil.com>
#
# singularity is freely distributable under the terms of an MIT-style license.
# See COPYING or http://www.opensource.org/licenses/mit-license.php.
from distutils.core import setup
try:
from singularity import information
from singularity import helpers
except ImportError:
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
from singularity import information
from singularity import helpers
PARAMS = {}
PARAMS["name"] = information.NAME
PARAMS["version"] = information.VERSION
PARAMS["description"] = information.DESCRIPTION
PARAMS["long_description"] = information.LONG_DESCRIPTION
PARAMS["author"] = information.AUTHOR
PARAMS["author_email"] = information.AUTHOR_EMAIL
PARAMS["url"] = information.URL
PARAMS["license"] = information.LICENSE
PARAMS["scripts"] = [
"bin/singularity",
]
PARAMS["packages"] = [
"singularity",
"singularity.configurators",
"singularity.configurators.gentoo",
"singularity.communicators",
"singularity.helpers",
"singularity.parameters",
]
PARAMS["data_files"] = [
("share/doc/{P[name]}-{P[version]}".format(P = PARAMS), [
"README.md",
]),
("share/doc/{P[name]}-{P[version]}/config".format(P = PARAMS), [
"config/singularity.conf",
"config/init.gentoo",
]),
("share/man/man8", [
"doc/man/man8/singularity.8",
"doc/man/man8/singularity-apply.8",
"doc/man/man8/singularity-daemon.8",
]),
("share/man/man5", [
"doc/man/man5/singularity.conf.5",
]),
]
PARAMS["requires"] = [
"daemon",
"Crypto",
]
if helpers.VIRTUAL == "xenU":
PARAMS["requires"].append("xen")
setup(**PARAMS)