示例#1
0
    def _do_install(self, tag: str) -> None:
        rustup_path = self._get_rustup_path()
        downloader.download("https://sh.rustup.rs", rustup_path)
        utils.mark_executable(rustup_path)

        args = [rustup_path, "--verbose", "--default-toolchain", "nightly", "--profile",
                "minimal", "--target", "wasm32-unknown-unknown", "--no-modify-path", "-y"]
        myprocess.run_process_async(args, env=self.get_env())
示例#2
0
    def install(self, overwrite):
        logger.debug(f"install: name={self.name}, tag={self.tag}")

        if self._should_skip(overwrite):
            logger.debug("Already exists. Skip install.")
            return

        rustup_path = self._get_rustup_path()
        downloader.download("https://sh.rustup.rs", rustup_path)
        utils.mark_executable(rustup_path)

        args = [rustup_path, "--verbose", "--default-toolchain", "nightly", "--profile",
                "minimal", "--target", "wasm32-unknown-unknown", "--no-modify-path", "-y"]
        myprocess.run_process_async(args, env=self.get_env())
示例#3
0
    def _post_install(self, tag: str):
        directory = self.get_directory(tag)

        utils.mark_executable(path.join(directory, "arwen"))
        utils.mark_executable(path.join(directory, "arwendebug"))
        utils.mark_executable(path.join(directory, "test"))

        utils.symlink(path.join(directory, "arwendebug"), os.path.join(self.get_parent_directory(), "arwendebug"))
        utils.symlink(path.join(directory, "test"), os.path.join(self.get_parent_directory(), "mandos-test"))
示例#4
0
 def _post_install(self, tag: str):
     directory = self.get_directory(tag)
     utils.mark_executable(path.join(directory, "signer"))
示例#5
0
 def install(self, overwrite):
     super().install(overwrite)
     utils.mark_executable(path.join(self.get_directory(), "soll"))
示例#6
0
 def install(self, overwrite):
     super().install(overwrite)
     utils.mark_executable(path.join(self.get_directory(), "arwen"))
     utils.mark_executable(path.join(self.get_directory(), "arwendebug"))
     utils.mark_executable(path.join(self.get_directory(), "test"))