def download_sources(location: Path, requirements: Path) -> None: cmd = [ "pip", "download", "-r", str(requirements), "--no-binary", ":all:", "--no-deps", "--dest", str(location), ] run(cmd, working_directory=None)
def download_libraries(requirements: Path, destination: Path) -> None: command = [ "pip", "install", "-t", str(destination), "-r", str(requirements), "--no-compile", # We use --no-deps because we want to ensure that dependencies are provided. # This includes all dependencies recursively up the chain. "--no-deps", ] run(command, working_directory=None)
def _apply_patch(patch_file_path: Path, working_directory: Path) -> None: run( ["git", "apply", "--verbose", str(patch_file_path)], working_directory=working_directory, )