コード例 #1
0
 def _IsInstalled(self):
     """ Check if the package has been installed."""
     installed = PackageUtil.LibraryExists( os.path.join( self.GetInstallPath(), "lib"), "libG4event" ) or \
         PackageUtil.LibraryExists( os.path.join( self.GetInstallPath(), "lib64" ), "libG4event" )
     if PackageUtil.kGraphical:
         installed = installed and ( PackageUtil.LibraryExists( os.path.join( self.GetInstallPath(), "lib" ), "libG4OpenGL" ) or \
             PackageUtil.LibraryExists( os.path.join( self.GetInstallPath(), "lib64" ), "libG4OpenGL" ) )
     return installed
コード例 #2
0
 def _IsInstalled(self):
     """ Rat releases and dev share a common install check."""
     # Check rat, root, RATLib and RATDSLib
     sys = os.uname()[0]
     return os.path.exists( os.path.join( self.GetInstallPath(), "bin/rat_%s-g++" % sys ) ) \
         and os.path.exists( os.path.join( self.GetInstallPath(), "bin/root" ) ) \
         and PackageUtil.LibraryExists( os.path.join( self.GetInstallPath(), "lib" ), "librat_%s-g++" % sys ) \
         and PackageUtil.LibraryExists( os.path.join( self.GetInstallPath(), "lib" ), "libRATEvent_%s-g++" % sys )
コード例 #3
0
 def _IsInstalled( self ):
     """ Returns true if the header, library and binary files are in the proper location."""
     header = os.path.isfile( os.path.join( self.GetInstallPath(), "include", "curl", "curl.h" ) )
     lib = PackageUtil.LibraryExists( os.path.join( self.GetInstallPath(), "lib" ), "libcurl" )
     exe = os.path.isfile( os.path.join( self.GetInstallPath(), "bin", "curl" ) )
     config = os.path.isfile( os.path.join( self.GetInstallPath(), "bin", "curl-config" ) )
     return header and lib and exe and config
コード例 #4
0
ファイル: Sfml.py プロジェクト: mschwen/snoing
 def _IsInstalled(self):
     """ Has sfml been installed."""
     libDir = os.path.join(self.GetInstallPath(), "lib")
     libs = ["audio", "graphics", "network", "system", "window"]
     return PackageUtil.All([
         PackageUtil.LibraryExists(libDir, "libsfml-%s" % lib)
         for lib in libs
     ])
コード例 #5
0
ファイル: Clhep.py プロジェクト: mschwen/snoing
 def _IsInstalled( self ):
     """ Check if installed."""
     return PackageUtil.LibraryExists( os.path.join( self.GetInstallPath(), "lib" ), "libCLHEP" )
コード例 #6
0
ファイル: Avalanche.py プロジェクト: mschwen/snoing
 def _IsInstalled( self ):
     """ Check if installed."""
     return PackageUtil.LibraryExists( os.path.join( self.GetInstallPath(), "lib/cpp" ), "libavalanche" )
コード例 #7
0
 def _IsInstalled(self):
     """ Check geant has been installed."""
     sys = os.uname()[0] + "-g++"
     installed = PackageUtil.LibraryExists( os.path.join( self.GetInstallPath(), "lib/" + sys ), "libG4event" ) and \
         PackageUtil.LibraryExists( os.path.join( self.GetInstallPath(), "lib/" + sys ),  "libG4UIbasic" )
     return installed
コード例 #8
0
 def _IsInstalled(self):
     return PackageUtil.LibraryExists(
         os.path.join(self.GetInstallPath(), "lib"), "libzmq")
コード例 #9
0
 def _IsInstalled(self):
     """ Has bzip2 been installed."""
     return os.path.isfile( os.path.join( self.GetInstallPath(), "bin/bzip2") ) and \
         os.path.exists( os.path.join( self.GetInstallPath(), "include/%s" % self._Header) ) and \
         PackageUtil.LibraryExists( os.path.join( self.GetInstallPath(), "lib" ), "lib%s" % self._Library )