Skip to content

Commit

Permalink
Load the py_XXX targets.
Browse files Browse the repository at this point in the history
Use the targets from `@rules_python//python:defs.bzl` rather than the
native targets (which are being deprecated).

Signed-off-by: Tim 'mithro' Ansell <[email protected]>
  • Loading branch information
mithro committed Nov 12, 2023
1 parent 4bb184a commit 270e7a0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cocotb/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
3 changes: 3 additions & 0 deletions pdk/liberty/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@

"""ASAP7 PDK Package"""

load("@rules_python//python:defs.bzl", "py_binary")
load("@rules_python//python:defs.bzl", "py_library")
load("@rules_python//python:defs.bzl", "py_test")
load("@rules_hdl_pip_deps//:requirements.bzl", "requirement")

py_binary(
Expand Down
2 changes: 2 additions & 0 deletions vivado/tests/BUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
load("@rules_python//python:defs.bzl", "py_binary")

load("//verilator:defs.bzl", "verilator_cc_library")
load("//verilog:providers.bzl", "verilog_library")
load(
Expand Down

0 comments on commit 270e7a0

Please sign in to comment.