Newer
Older
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
#!/usr/bin/env python
#
# Copyright (C) 2015 IT4Innovations
# Lumir Jasiok
# lumir.jasiok@vsb.cz
# http://www.it4i.cz
#
#
#
"""
EasyBuild support for installing the Intel Inspector XE,
implemented as an easyblock
@author: Lumir Jasiok (IT4Innovations)
"""
from easybuild.easyblocks.generic.intelbase import IntelBase
class EB_Inspector(IntelBase):
"""
Support for installing Intel Inspector XE
"""
def sanity_check_step(self):
"""Custom sanity check paths for Inspector"""
custom_paths = {
'files': ["inspector_xe/bin64/inspxe-cl",
"inspector_xe/lib64/libinspxe_ism_core_3.32.so"],
'dirs': ['inspector_xe/bin64', 'inspector_xe/lib64']
}
super(EB_Inspector, self).sanity_check_step(custom_paths=custom_paths)
def make_module_req_guess(self):
"""
A dictionary of possible directories to look for
"""
guesses = super(EB_Inspector, self).make_module_req_guess()
lib_path = 'inspector_xe/lib64'
include_path = 'inspector_xe/include'
guesses.update({
'LD_LIBRARY_PATH': [lib_path],
'LIBRARY_PATH': [lib_path],
'CPATH': [include_path],
'INCLUDE': [include_path],
'PATH': ['inspector_xe/bin64'],
})
return guesses