Example #1
0
	def post_compilation (self):
		destination = self.resources_destination ()
		self.install_resources (destination)
		self.install_executables (destination)

		code_dir = self.code_dir ()
		dir_util.remove_tree (code_dir)
		dir_util.mkpath (code_dir)
Example #2
0
    def post_compilation(self):
        destination = self.resources_destination()
        self.install_resources(destination)
        self.install_executables(destination)

        code_dir = self.code_dir()
        dir_util.remove_tree(code_dir)
        dir_util.mkpath(code_dir)
Example #3
0
	def pre_compilation (self):
		self.write_io ('pre_compilation\n')
		
		f_code_parent = path.dirname (self.code_dir_path ())
		if path.exists (self.code_dir_path ()):
			dir_util.remove_tree (self.code_dir_path ())
		if not path.exists (f_code_parent):
			dir_util.mkpath (f_code_parent)
		self.write_io ('Extracting archive %s to: %s\n' % (self.archive_target (), f_code_parent))
		dir_util.extract_archive (self.archive_target (), f_code_parent, self.env ['ASCII_ENV'])
Example #4
0
	def compile (self):
		super (C_CODE_TAR_BUILD, self).compile ()
		tar_path = self.f_code_tar_path ()
		if path.exists (tar_path):
			os.remove (tar_path)
		self.write_io ('Archiving to: %s\n' % tar_path)

		tar = ARCHIVE (self.f_code_tar_unix_path ())
		tar.chdir = '/'.join (self.code_dir_steps ()[0:-1])
		tar.append ('F_code')

		code_dir = self.code_dir ()
		dir_util.remove_tree (code_dir)
		dir_util.mkpath (code_dir) # Leave an empty F_code directory otherwise EiffelStudio complains
Example #5
0
    def compile(self):
        super(C_CODE_TAR_BUILD, self).compile()
        tar_path = self.f_code_tar_path()
        if path.exists(tar_path):
            os.remove(tar_path)
        self.write_io('Archiving to: %s\n' % tar_path)

        tar = ARCHIVE(self.f_code_tar_unix_path())
        tar.chdir = '/'.join(self.code_dir_steps()[0:-1])
        tar.append('F_code')

        code_dir = self.code_dir()
        dir_util.remove_tree(code_dir)
        dir_util.mkpath(
            code_dir
        )  # Leave an empty F_code directory otherwise EiffelStudio complains
Example #6
0
    def compile(self):
        code_dir = self.code_dir()
        classic_dir = path.dirname(code_dir)
        if path.exists(classic_dir):
            if path.exists(code_dir):
                dir_util.remove_tree(code_dir)
        else:
            dir_util.mkpath(classic_dir)

        tar_path = self.f_code_tar_unix_path()
        tar = ARCHIVE(tar_path)
        tar.chdir = '/'.join(self.code_dir_steps()[0:-1])
        self.write_io('Extracting: %s\n' % tar_path)
        tar.extract()

        curdir = path.abspath(os.curdir)
        os.chdir(self.code_dir())
        ret_code = osprocess.call(['finish_freezing'])
        os.chdir(curdir)
Example #7
0
	def compile (self):
		code_dir = self.code_dir ()
		classic_dir = path.dirname (code_dir)
		if path.exists (classic_dir):
			if path.exists (code_dir):
				dir_util.remove_tree (code_dir)
		else:
			dir_util.mkpath (classic_dir)

		tar_path = self.f_code_tar_unix_path ()
		tar = ARCHIVE (tar_path)
		tar.chdir = '/'.join (self.code_dir_steps ()[0:-1])
		self.write_io ('Extracting: %s\n' % tar_path)
		tar.extract ()

		curdir = path.abspath (os.curdir)
		os.chdir (self.code_dir ())
		ret_code = osprocess.call (['finish_freezing'])
		os.chdir (curdir)
Example #8
0
	def post_compilation (self):
		self.install_resources (self.resources_destination ())
		self.install_executables (self.resources_destination ())
		dir_util.remove_tree (self.code_dir_path ())
		os.mkdir (self.code_dir_path ())
Example #9
0
	def post_compilation (self):
		self.write_io ('Archiving to: %s\n' % self.archive_target ())
		dir_util.make_archive (self.archive_target (), self.code_dir_path ())
		dir_util.remove_tree (path.join ('build', 'EIFGENs'))