def CheckState( self ): """ Need to test the library linking and inclusion of the header.""" if self._Framework == False: installed, self._CheckPipe = PackageUtil.TestLibrary( self._LibName, self._Header ) else: installed, self._CheckPipe = PackageUtil.TestFramework( self._LibName, self._Header ) if installed: self._Installed = True return
def CheckState(self): """ Check the Xm state, slightly more involved on macs.""" sys = os.uname()[0] if sys == 'Darwin': flags = [] if os.path.exists("/sw/include/Xm"): flags = ["-I%s" % "/sw/include/Xm", "-L%s" % "/sw/lib"] elif os.path.exists("/usr/OpenMotif"): flags = [ "-I%s" % "/usr/OpenMotif/include", "-L%s" % "/usr/OpenMotif/lib" ] installed, self._CheckPipe = PackageUtil._TestLibrary( "Xm.h", flags) self._Installed = installed else: installed, self._CheckPipe = PackageUtil.TestLibrary( "Xm", "Xm/Xm.h") self._Installed = installed return
def _IsSystemInstalled(self): """ Check if package is installed on the system first.""" installed, output = PackageUtil.TestLibrary(self._Library, self._Header) self._CheckPipe += output return installed