def __init__(self, config, verbose=False): self.config = config self.prefix = os.path.abspath('install-' + config['activeConfig']) self.verbose = verbose self.build_path_var = os.path.abspath('build-' + config['activeConfig']) self.cmd = util.Commander(paths=[self.get_path('bin')], env=self.get_env(), verbose=self.verbose) self.toolchain = self.write_cmake() self.generator = None
def __init__(self, prefix, verbose=False, build_path=None): self.prefix = prefix self.verbose = verbose self.build_path_var = build_path self.cmd = util.Commander(paths=[self.get_path('bin')], env=self.get_env(), verbose=self.verbose) self.toolchain = self.write_cmake()
def __init__(self, prefix, verbose=False, build_path=None): self.prefix = os.path.abspath(prefix or 'cget') self.verbose = verbose self.build_path_var = build_path self.cmd = util.Commander(paths=[self.get_path('bin')], env=self.get_env(), verbose=self.verbose) self.toolchain = self.write_cmake() with open(self.toolchain, "rb") as toolchain_file: self.toolchain_hash = hashlib.sha1(toolchain_file.read()).hexdigest() self.system_id = "%s-%s-%s" % (distro.id(), distro.version(), platform.architecture()) self.log("system: %s" % self.system_id)