Exemple #1
0
def main():
    """Install packages considered necessary to build software"""
    if is_debian() or is_ubuntu():
        apt_get = APTGet()
        apt_get.install('build-essential')
    else:
        # FIXME: we need to support other distros soon
        pass
Exemple #2
0
def get_os():
    if is_debian():
        return 'debian'
    elif is_ubuntu():
        return 'ubuntu'
    elif is_osx():
        return 'osx'
    else:
        raise ValueError('Unknown operating system')