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
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 )
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
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 ])
def _IsInstalled( self ): """ Check if installed.""" return PackageUtil.LibraryExists( os.path.join( self.GetInstallPath(), "lib" ), "libCLHEP" )
def _IsInstalled( self ): """ Check if installed.""" return PackageUtil.LibraryExists( os.path.join( self.GetInstallPath(), "lib/cpp" ), "libavalanche" )
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
def _IsInstalled(self): return PackageUtil.LibraryExists( os.path.join(self.GetInstallPath(), "lib"), "libzmq")
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 )