Esempio n. 1
0
    def build_toolkit(self):

        os.chdir(path.join(eiffel_loop_home_dir, path.normpath("tool/toolkit")))
        if not environ.command_exists(["el_toolkit", "-pyxis_to_xml", "-h"], shell=self.is_windows()):
            if subprocess.call(["scons", "project=toolkit.ecf", "action=finalize"], shell=self.is_windows()) == 0:
                dir_util.mkpath(self.tools_bin())
                package_bin = path.expandvars(path.normpath("package/$ISE_PLATFORM/bin"))
                for dest_path in dir_util.copy_tree(package_bin, self.tools_bin()):
                    print "Copied:", dest_path
                self.print_completion()
            else:
                print "ERROR: failed to build el_toolkit"
Esempio n. 2
0
	def build_toolkit (self):
		
		os.chdir (path.join (eiffel_loop_home_dir, path.normpath ('tool/toolkit')))
		if not environ.command_exists (['el_toolkit', '-pyxis_to_xml', '-h'], shell=self.is_windows ()):
			bin_path = self.tools_bin ()
			if not path.exists (bin_path):
				dir_util.mkpath (bin_path)
			# for windows compatiblity
			build_cmd = ['python', '-m', 'eiffel_loop.scripts.ec_build_finalized.py', '--install', bin_path]
			if subprocess.call (build_cmd, shell=self.is_windows ()) == 0:
				self.print_completion ()
			else:
				print 'ERROR: failed to build el_toolkit'
Esempio n. 3
0
    def install_scons(self):
        os.chdir(eiffel_loop_home_dir)
        if not environ.command_exists(["scons", "-v"], shell=True):
            scons_package = ZIP_SOFTWARE_PACKAGE(
                "http://freefr.dl.sourceforge.net/project/scons/scons/2.2.0/scons-2.2.0.zip"
            )
            scons_package.extract_all(package.download_dir)

            scons_name = path.basename(scons_package.url)

            os.chdir(path.splitext(scons_name)[0])
            install_scons_cmd = ["python", "setup.py", "install", "--standard-lib"]
            print install_scons_cmd
            if subprocess.call(install_scons_cmd) == 0:
                file_util.copy_file(path.join(python_home_dir, r"Scripts\scons.py"), python_home_dir)
                dir_util.remove_tree(scons_name[0])
            else:
                print "ERROR: scons installation failed"
Esempio n. 4
0
	def install_scons (self):
		if not environ.command_exists (['scons', '-v'], shell = True):
			scons_package = ZIP_SOFTWARE_PACKAGE ('http://www.eiffel-loop.com/download/scons-2.2.0.zip')
			scons_package.extract_all (package.download_dir)

			scons_name = path.basename (scons_package.url)
			package_dir = path.join (package.download_dir, path.splitext (scons_name)[0])

			os.chdir (package_dir)

			install_scons_cmd = ['python', 'setup.py', 'install', '--standard-lib']
			print install_scons_cmd
			if subprocess.call (install_scons_cmd) == 0:
				file_util.copy_file (path.join (python_home_dir, r'Scripts\scons.py'), python_home_dir)
				os.chdir (package.download_dir) # change to parent to prevent a permission problem when removing
				dir_util.remove_tree (package_dir)
			else:
				print 'ERROR: scons installation failed'
Esempio n. 5
0
    def build_toolkit(self):

        os.chdir(path.join(eiffel_loop_home_dir,
                           path.normpath('tool/toolkit')))
        if not environ.command_exists(['el_toolkit', '-pyxis_to_xml', '-h'],
                                      shell=self.is_windows()):
            if subprocess.call(
                ['scons', 'action=finalize', 'project=toolkit.ecf'],
                    shell=self.is_windows()) == 0:
                dir_util.mkpath(self.tools_bin())
                package_bin = path.expandvars(
                    path.normpath('build/$ISE_PLATFORM/package/bin'))
                for dest_path in dir_util.copy_tree(package_bin,
                                                    self.tools_bin()):
                    print 'Copied:', dest_path
                self.print_completion()
            else:
                print 'ERROR: failed to build el_toolkit'
Esempio n. 6
0
    def install_scons(self):
        os.chdir(eiffel_loop_home_dir)
        if not environ.command_exists(['scons', '-v'], shell=True):
            scons_package = ZIP_SOFTWARE_PACKAGE(
                'http://freefr.dl.sourceforge.net/project/scons/scons/2.2.0/scons-2.2.0.zip'
            )
            scons_package.extract_all(package.download_dir)

            scons_name = path.basename(scons_package.url)

            os.chdir(path.splitext(scons_name)[0])
            install_scons_cmd = [
                'python', 'setup.py', 'install', '--standard-lib'
            ]
            print install_scons_cmd
            if subprocess.call(install_scons_cmd) == 0:
                file_util.copy_file(
                    path.join(python_home_dir, r'Scripts\scons.py'),
                    python_home_dir)
                dir_util.remove_tree(scons_name[0])
            else:
                print 'ERROR: scons installation failed'