From e34259b84370e21b4eda737f7bc03dd72c475774 Mon Sep 17 00:00:00 2001 From: ludamad Date: Fri, 23 Feb 2024 15:37:10 +0000 Subject: [PATCH] better print --- build-system/scripts/generate_circleci_config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build-system/scripts/generate_circleci_config.py b/build-system/scripts/generate_circleci_config.py index ba853a3f7c2..79e5348e617 100755 --- a/build-system/scripts/generate_circleci_config.py +++ b/build-system/scripts/generate_circleci_config.py @@ -88,6 +88,10 @@ def remove_jobs_from_workflow(jobs, to_remove): job[key]["requires"] = [r for r in job[key].get("requires", []) if r not in jobs_to_remove] new_jobs.append(job) return new_jobs +import sys + +def eprint(*args, **kwargs): + print(*args, file=sys.stderr, **kwargs) if __name__ == '__main__': # The CircleCI workflow as a JSON string (Replace this with your actual workflow) @@ -98,7 +102,7 @@ def remove_jobs_from_workflow(jobs, to_remove): # # List of jobs to remove jobs_to_remove = list(get_already_built_circleci_job_names(workflow_dict["jobs"])) for key in jobs_to_remove: - print("KEY", key) + eprint("KEY", key) # Get rid of workflow setup step and setup flag workflow_dict["setup"] = False