forked from iLCSoft/iLCInstall
-
Notifications
You must be signed in to change notification settings - Fork 1
/
druid.py
49 lines (33 loc) · 1.31 KB
/
druid.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
##################################################
#
# Druid module
#
# Author: Jan Engels, DESY
# Date: Jan, 2007
#
##################################################
# custom imports
from .baseilc import BaseILC
from .util import *
class Druid(BaseILC):
""" Responsible for the Druid installation process. """
def __init__(self, userInput):
BaseILC.__init__(self, userInput, "Druid", "Druid")
# no cmake build support
self.hasCMakeBuildSupport = False
self.hasCMakeFindSupport = False
#self.download.supportHEAD = False
self.download.root = ""
self.reqmodules = [ "LCIO" , "GEAR", "ROOT" ]
self.reqfiles = [[ "bin/Druid" ]]
def compile(self):
""" compile Druid """
os.chdir( self.installPath + "/src" )
if( self.rebuild ):
os_system( "make clean" )
if( os_system( "make ${MAKEOPTS} 2>&1 | tee -a " + self.logfile ) != 0 ):
self.abort( "failed to compile!!" )
def postCheckDeps(self):
BaseILC.postCheckDeps(self)
self.env["DRUID"] = self.installPath
self.envpath["PATH"].append( "$DRUID/bin" )