コード例 #1
0
ファイル: soft_setup.py プロジェクト: stefanmonkey/stefanbo
    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"
コード例 #2
0
ファイル: init_install.py プロジェクト: crazese/stefanbo
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)
コード例 #3
0
ファイル: test.py プロジェクト: crazese/stefanbo
	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'