Esempio n. 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())
Esempio n. 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())
Esempio n. 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"))
Esempio n. 4
0
 def _post_install(self, tag: str):
     directory = self.get_directory(tag)
     utils.mark_executable(path.join(directory, "signer"))
Esempio n. 5
0
 def install(self, overwrite):
     super().install(overwrite)
     utils.mark_executable(path.join(self.get_directory(), "soll"))
Esempio n. 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"))