def build_openssl(self, prefix_path): abs_dir_path = self.build_dir_path_ try: openssl_default_version = '1.1.0h' compiler_flags = utils.CompileInfo([], ['no-shared']) url = '{0}openssl-{1}.{2}'.format(OPENSSL_SRC_ROOT, openssl_default_version, ARCH_OPENSSL_EXT) utils.build_from_sources(url, compiler_flags, g_script_path, prefix_path, './config') except Exception as ex: os.chdir(abs_dir_path) raise ex
def build(self, url, compiler_flags: utils.CompileInfo, executable='./configure'): utils.build_from_sources(url, compiler_flags, g_script_path, self.prefix_path_, executable)