-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodulecfg.py
62 lines (50 loc) · 2.19 KB
/
modulecfg.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
#
# PyModules - Software Environments for Research Computing Clusters
#
# Copyright 2012-2013, Brown University, Providence, RI. All Rights Reserved.
#
# This file is part of PyModules.
#
# Permission to use, copy, modify, and distribute this software and its
# documentation for any purpose other than its incorporation into a
# commercial product is hereby granted without fee, provided that the
# above copyright notice appear in all copies and that both that
# copyright notice and this permission notice appear in supporting
# documentation, and that the name of Brown University not be used in
# advertising or publicity pertaining to distribution of the software
# without specific, written prior permission.
#
# BROWN UNIVERSITY DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR ANY
# PARTICULAR PURPOSE. IN NO EVENT SHALL BROWN UNIVERSITY BE LIABLE FOR
# ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
import os
### MODIFY THESE ###
# Set this to the root directory where all software packages will be installed.
# PyModules enforces the convention that you install all packages to:
# <rootdir>/<package-name>/<package-version>
rootdir = '/gpfs/runtime/opt/'
# Forces all modulefiles to have group-writable permissions: important if you
# plan to have multiple users maintaining modulefiles and updating the
# database. NOTE: you must include the leading 0 in the octal code!
moduleperm = 0664
### DO NOT EDIT BELOW ###
# Default data.
defaults = {
'rootdir': os.path.join(rootdir, '%(name)s', '%(__name__)s'),
'version': '%(__name__)s',
'default': 'false'
}
messages = {
'unknown': """
Please contact CCV support ([email protected]) if you think that software
with this module name should be installed."""
}
# Environment variables.
MODULEPATH = os.environ['MODULEPATH']
MODULEDB = os.path.join(MODULEPATH, '.db.sqlite')
MODULESHELL = os.environ['MODULESHELL']
LOADEDMODULES = 'LOADEDMODULES'