From 831c593cdf77791c4a1bebf9da621a8b8aefe20b Mon Sep 17 00:00:00 2001 From: Pawel Czarnecki Date: Fri, 8 Dec 2023 10:26:44 +0100 Subject: [PATCH] gds_write: use hermetic python Signed-off-by: Pawel Czarnecki --- gds_write/build_defs.bzl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gds_write/build_defs.bzl b/gds_write/build_defs.bzl index ef5a8428..51a47d1c 100644 --- a/gds_write/build_defs.bzl +++ b/gds_write/build_defs.bzl @@ -72,7 +72,8 @@ def _gds_write_impl(ctx): tech_lef, ], ), - command = "python {}".format(ctx.executable._gds_write.path) + + command = "$(PYTHON3)" + + " {}".format(ctx.executable._gds_write.path) + " --design-name {}".format(ctx.attr.implemented_rtl[SynthesisInfo].top_module) + " --input-def {}".format(ctx.attr.implemented_rtl[OpenRoadInfo].routed_def.path) + lef_args + @@ -81,6 +82,7 @@ def _gds_write_impl(ctx): gds_allow_empty_args + " --out {}".format(final_gds.path), tools = depset([ctx.executable._gds_write]), + toolchain = "//python:current_py_toolchain" ) return [DefaultInfo(files = depset([final_gds]))]