(target, interactive=True, update=False)
Install setup-specific dependencies
Install setup-specific dependencies
Install setup - specific dependencies
def _install_specific(target, interactive=True, update=False):
    """Install setup-specific dependencies"""
    key = next(key for key, val in target_map.items() if val == target)
    pkg_map = {
        'sdr': {
            'apt': ["gqrx-sdr", "rtl-sdr", "leandvb", "tsduck"],
            'dnf': ["gqrx", "rtl-sdr", "leandvb", "tsduck"],
            'yum': ["rtl-sdr", "leandvb", "tsduck"]
        },
        'usb': {
            'apt': ["iproute2", "iptables", "dvb-apps", "dvb-tools"],
            'dnf': ["iproute", "iptables", "dvb-apps", "v4l-utils"],
            'yum': ["iproute", "iptables", "dvb-apps", "v4l-utils"]
        },
        'standalone': {
            'apt': ["iproute2", "iptables"],
            'dnf': ["iproute", "iptables"],
            'yum': ["iproute", "iptables"]
        },
        'sat-ip': {
            'apt': ["iproute2", "tsduck"],
            'dnf': ["iproute", "tsduck"],
            'yum': ["iproute", "tsduck"]
        }
    }
    # NOTE:
    # - leandvb and tsduck come from our repository. Also, note gqrx is not
    #   available on CentOS (hence not included on the yum list).
    # - In the USB setup, the only package from our repository is dvb-apps in
    #   the specific case of dnf (RPM) installation, given that dvb-apps is not
    #   available on the latest mainstream fedora repositories.

    util.print_header("Installing {} Receiver Dependencies".format(target))
    _install_packages(pkg_map[key]['apt'], pkg_map[key]['dnf'],
                      pkg_map[key]['yum'], interactive, update)
def _install_specific ( target , interactive = True , update = False ) : key = next ( key for key , val in target_map . items ( ) if val == target ) pkg_map = { 'sdr' : { 'apt' : [ "gqrx-sdr" , "rtl-sdr" , "leandvb" , "tsduck" ] , 'dnf' : [ "gqrx" , "rtl-sdr" , "leandvb" , "tsduck" ] , 'yum' : [ "rtl-sdr" , "leandvb" , "tsduck" ] } , 'usb' : { 'apt' : [ "iproute2" , "iptables" , "dvb-apps" , "dvb-tools" ] , 'dnf' : [ "iproute" , "iptables" , "dvb-apps" , "v4l-utils" ] , 'yum' : [ "iproute" , "iptables" , "dvb-apps" , "v4l-utils" ] } , 'standalone' : { 'apt' : [ "iproute2" , "iptables" ] , 'dnf' : [ "iproute" , "iptables" ] , 'yum' : [ "iproute" , "iptables" ] } , 'sat-ip' : { 'apt' : [ "iproute2" , "tsduck" ] , 'dnf' : [ "iproute" , "tsduck" ] , 'yum' : [ "iproute" , "tsduck" ] } } # NOTE: # - leandvb and tsduck come from our repository. Also, note gqrx is not #   available on CentOS (hence not included on the yum list). # - In the USB setup, the only package from our repository is dvb-apps in #   the specific case of dnf (RPM) installation, given that dvb-apps is not #   available on the latest mainstream fedora repositories. util . print_header ( "Installing {} Receiver Dependencies" . format ( target ) ) _install_packages ( pkg_map [ key ] [ 'apt' ] , pkg_map [ key ] [ 'dnf' ] , pkg_map [ key ] [ 'yum' ] , interactive , update )