def init_install(self): """ Init the system , change the /etc/apt/source.list and update it. """ apt = Apt() apt.apt_mod() apt.apt_update() soft_list = [ "build-essential", "gcc", "g++", "make", "libncurses5-dev", "libxp-dev", "libmotif-dev", "libxt-dev", "libstdc++6", "libgd2-xpm", "libgd2-xpm-dev", "libbz2-dev", ] for soft in soft_list: apt.apt_install(soft) print "######## The system init install complete successfully! #########" return "start_point"
def main(): ''' Init the system , change the /etc/apt/source.list and update it. ''' apt = Apt() apt.apt_mod() apt.apt_update() soft_list = ['build-essential', 'gcc', 'g++', 'make', 'libncurses5-dev', 'libxp-dev', 'libmotif-dev', 'libxt-dev', 'libstdc++6'] for soft in soft_list: apt.apt_install(soft)
def init_install(self): ''' Init the system , change the /etc/apt/source.list and update it. ''' apt = Apt() apt.apt_mod() apt.apt_update() soft_list = ['build-essential', 'gcc', 'g++', 'make', 'libncurses5-dev', 'libxp-dev', 'libmotif-dev', 'libxt-dev', 'libstdc++6'] for soft in soft_list: apt.apt_install(soft) print "######## The system init install complete successfully! #########" return 'start_point'