Attachment 'mysql.py'
Download 1 ##################################################
2 #
3 # MySQL module
4 #
5 # Author: Jan Engels, DESY
6 # Date: Jan, 2007
7 #
8 ##################################################
9
10 # custom imports
11 from baseilc import BaseILC
12 from util import *
13
14
15 class MySQL(BaseILC):
16 """ Responsible for the MySQL configuration process. """
17
18 def __init__(self, userInput):
19 BaseILC.__init__(self, userInput, "MySQL", "mysql")
20
21 self.installSupport = False
22 self.hasCMakeBuildSupport = False
23
24 self.reqfiles = [
25 ["lib/mysql/libmysqlclient.so", "lib/libmysqlclient.so",
26 "lib64/mysql/libmysqlclient.so", "lib64/libmysqlclient.so",
27 "lib/mysql/libmysqlclient.dylib", "lib/libmysqlclient.dylib"]
28 ]
29
30 def postCheckDeps(self):
31 BaseILC.postCheckDeps(self)
32
33 self.envorder = [ "MYSQL_HOME" ]
34
35 self.env["MYSQL_HOME"] = self.installPath
36 self.env["MYSQL"] = "$MYSQL_HOME"
37 self.env["MYSQL_PATH"] = "$MYSQL_HOME" # needed for mokka
38 if platform.architecture()[0] == '64bit':
39 self.env["MYSQL_LIBDIR"] = "$MYSQL_HOME/lib64/mysql" # needed for mokka
40
41 self.envpath["PATH"].append( "$MYSQL_HOME/bin" )
42 self.envpath["LD_LIBRARY_PATH"].append( "$MYSQL_HOME/lib64/mysql" )
43 self.envpath["LD_LIBRARY_PATH"].append( "$MYSQL_HOME/lib64" )
44 self.envpath["LD_LIBRARY_PATH"].append( "$MYSQL_HOME/lib/mysql" )
45 self.envpath["LD_LIBRARY_PATH"].append( "$MYSQL_HOME/lib" )
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.