From e9cdd55c960c1ed7c939b7f52482e2b914bfbc12 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 22 Sep 2025 12:36:18 +0500 Subject: [PATCH] build-all.py - fix Python 3.6 support for rocky (566c9af) --- nix/build-all.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nix/build-all.py b/nix/build-all.py index fb285fc093..b5874714c2 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -365,7 +365,7 @@ def run(cmds: "Sequence[str]", cwd: "Union[str, None]" = None, can_fail: bool = def timestamp() -> str: return datetime.now().strftime("%Y-%m-%d %H:%M:%S,%f")[:-3] # same format as logging - def stream_reader(pipe, collector: list[str], log_file) -> None: + def stream_reader(pipe, collector: "list[str]", log_file) -> None: for line in iter(pipe.readline, ""): log_file.write(f"{timestamp()} {line}") log_file.flush() @@ -1132,14 +1132,14 @@ cmake_args = [ "-DVERSION_OVERRIDE=" + ("On" if ADD_COMMIT_SHA else "Off"), ] """Default CMake args to use for all CMake configs.""" -cmake_args_prefix_path: list[str] = [ +cmake_args_prefix_path: "list[str]" = [ f"{DEPS_DIR}/install/boost-{BOOST_VERSION}", f"{DEPS_DIR}/install/eigen-install-{EIGEN_VERSION}", f"{DEPS_DIR}/install/json-{JSON_VERSION}", ] -def get_cmake_args_prefix_path(additional_paths: Sequence[str] = ()) -> list[str]: +def get_cmake_args_prefix_path(additional_paths: "Sequence[str]" = ()) -> "list[str]": args_prefix_path = cmake_args_prefix_path.copy() args_prefix_path.extend(additional_paths) prefix_path = ";".join(args_prefix_path)