From 6a6daa99dcbb2ff37ac350965c929e14ae187172 Mon Sep 17 00:00:00 2001 From: Tim 'mithro' Ansell Date: Sun, 12 Nov 2023 12:37:34 -0800 Subject: [PATCH] Load the `py_XXX` targets. Use the targets from `@rules_python//python:defs.bzl` rather than the native targets (which are being deprecated). Signed-off-by: Tim 'mithro' Ansell --- cocotb/BUILD | 2 ++ pdk/liberty/BUILD | 1 + vivado/tests/BUILD | 1 + 3 files changed, 4 insertions(+) diff --git a/cocotb/BUILD b/cocotb/BUILD index 18378bae..0ee9e136 100644 --- a/cocotb/BUILD +++ b/cocotb/BUILD @@ -12,6 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. +load("@rules_python//python:defs.bzl", "py_binary") + py_binary( name = "cocotb_wrapper", srcs = ["cocotb_wrapper.py"], diff --git a/pdk/liberty/BUILD b/pdk/liberty/BUILD index aa129ac6..f37e8d26 100644 --- a/pdk/liberty/BUILD +++ b/pdk/liberty/BUILD @@ -15,6 +15,7 @@ """ASAP7 PDK Package""" load("@rules_hdl_pip_deps//:requirements.bzl", "requirement") +load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test") py_binary( name = "combine_liberty", diff --git a/vivado/tests/BUILD b/vivado/tests/BUILD index 2316eaf1..406216f7 100644 --- a/vivado/tests/BUILD +++ b/vivado/tests/BUILD @@ -1,3 +1,4 @@ +load("@rules_python//python:defs.bzl", "py_binary") load("//verilator:defs.bzl", "verilator_cc_library") load("//verilog:providers.bzl", "verilog_library") load(