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.
  • [get | view] (2016-05-24 19:42:30, 3.1 KB) [[attachment:FindLCIO.cmake]]
  • [get | view] (2016-04-26 15:50:01, 1.7 KB) [[attachment:install_boost.sh]]
  • [get | view] (2016-05-24 16:44:14, 1.7 KB) [[attachment:installboost.sh]]
  • [get | view] (2016-05-24 16:45:49, 1.6 KB) [[attachment:mysql.py]]
  • [get | view] (2016-04-26 15:58:23, 4.4 KB) [[attachment:qt.py]]
  • [get | view] (2016-04-26 15:50:14, 12.2 KB) [[attachment:release-ilcsoft.cfg]]
  • [get | view] (2016-04-26 15:50:18, 5.7 KB) [[attachment:release-versions.py]]
  • [get | view] (2016-04-26 15:58:02, 4.8 KB) [[attachment:root.py]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.