def mkdirs(): try: os.mkdir(build_dir) except OSError: pass try: os.mkdir(inc_dir) except OSError: pass for compiler in all_compilers(): try: os.mkdir(os.path.join(inc_dir, compiler['inc_dir'])) except OSError: pass
def mkdirs(): try: os.mkdir(build_dir) except OSError: pass try: os.mkdir(inc_dir) except OSError: pass for compiler in all_compilers(): try: os.mkdir(os.path.join(inc_dir, compiler["inc_dir"])) except OSError: pass
def extract_libs(): for name, lib in libs.items(): filename = lib['filename'] if not os.path.exists(filename): filename = fetch(lib['url']) if name == 'openjpeg': for compiler in all_compilers(): if not os.path.exists(os.path.join( build_dir, lib['dir']+compiler['inc_dir'])): extract(filename, build_dir) os.rename(os.path.join(build_dir, lib['dir']), os.path.join( build_dir, lib['dir']+compiler['inc_dir'])) else: extract(filename, build_dir)
def extract_libs(): for name, lib in libs.items(): filename = lib['filename'] if not os.path.exists(filename): filename = fetch(lib['url']) if name == 'openjpeg': for compiler in all_compilers(): if not os.path.exists(os.path.join( build_dir, lib['dir']+compiler['inc_dir'])): extract(filename, build_dir) os.rename(os.path.join(build_dir, lib['dir']), os.path.join( build_dir, lib['dir']+compiler['inc_dir'])) else: extract(filename, build_dir)
def extract_libs(): for name, lib in libs.items(): filename = fetch(lib["url"]) if name == "openjpeg": for compiler in all_compilers(): if not os.path.exists( os.path.join(build_dir, lib["dir"] + compiler["inc_dir"]) ): extract(filename, build_dir) os.rename( os.path.join(build_dir, lib["dir"]), os.path.join(build_dir, lib["dir"] + compiler["inc_dir"]), ) else: extract(filename, build_dir)