How to use the pybombs.packagers.extern.ExternPackager.__init__ function in PyBOMBS

To help you get started, we’ve selected a few PyBOMBS examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github gnuradio / pybombs / pybombs / packagers / portage.py View on Github external
def __init__(self, logger):
        ExternPackager.__init__(self, logger)
        self.available = False
        try:
            from _emerge import search
            from _emerge import actions
            from _emerge.actions import load_emerge_config
            self.portage = __import__('portage')
            self.re = __import__('re')
            emerge_config = load_emerge_config()
            self.root_config = emerge_config.running_config
            # search init args:
            # (self,root_config,spinner,searchdesc,verbose,usepkg,usepkgconly,search_index=True)
            self.search = search.search(self.root_config,False,False,False,True,False)
            self.search._vardb.cp_all()
            self.available = True
        except ImportError :
            self.available = False
github gnuradio / pybombs / pybombs / packagers / brew.py View on Github external
def __init__(self, logger):
        ExternPackager.__init__(self, logger)
github gnuradio / pybombs / pybombs / packagers / pacman.py View on Github external
def __init__(self, logger):
        ExternPackager.__init__(self, logger)
        self.command = None
        if sysutils.which('pacman') is not None:
            self.command = 'pacman'
github gnuradio / pybombs / pybombs / packagers / extern.py View on Github external
def __init__(self, logger):
        ExternPackager.__init__(self, logger)
github gnuradio / pybombs / pybombs / packagers / pip.py View on Github external
def __init__(self, logger):
        ExternPackager.__init__(self, logger)
        self.cmd = detect_pip_exe()
        if self.cmd:
            self.log.debug("Using pip executable: %s", self.cmd)
        else:
            self.log.debug(" pip executable not found.")
github gnuradio / pybombs / pybombs / packagers / apt.py View on Github external
def __init__(self, logger):
        ExternPackager.__init__(self, logger)
        # if sysutils.which('apt') is not None:
        if False: # To re-enable apt, replace this line with the one above (also need to change something further down)
            self.getcmd = 'apt'
            self.searchcmd = 'apt'
        else:
            self.getcmd = 'apt-get'
            self.searchcmd = 'apt-cache'

        try:
            import apt
            self.cache = apt.Cache()
        except (ImportError, AttributeError):
            # ImportError is caused by apt being completely missing
            # AttributeError is caused by us importing ourselves (we have no
            #   Cache() method) because python-apt is missing and we got a
            #   relative import instead
github gnuradio / pybombs / pybombs / packagers / yum.py View on Github external
def __init__(self, logger):
        ExternPackager.__init__(self, logger)
        self.command = None
        if sysutils.which('dnf') is not None:
            self.command = 'dnf'
        elif sysutils.which('yum') is not None:
            self.command = 'yum'