Skip to content

Commit

Permalink
gds_write: use hermetic python
Browse files Browse the repository at this point in the history
Signed-off-by: Pawel Czarnecki <[email protected]>
  • Loading branch information
lpawelcz committed Dec 8, 2023
1 parent 78f33fb commit 831c593
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gds_write/build_defs.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -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 +
Expand All @@ -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]))]
Expand Down

0 comments on commit 831c593

Please sign in to comment.