Skip to content

Commit 4a2ffa9

Browse files
committed
fix
1 parent f333671 commit 4a2ffa9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ortools/sat/samples/code_samples.bzl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
"""Helper macro to compile and test code samples."""
1515

1616
load("@pip_deps//:requirements.bzl", "requirement")
17+
load("@rules_python//python:defs.bzl", "py_binary", "py_test")
18+
1719

1820
def code_sample_cc(name):
1921
native.cc_binary(
@@ -41,7 +43,7 @@ def code_sample_cc(name):
4143
)
4244

4345
def code_sample_py(name):
44-
native.py_binary(
46+
py_binary(
4547
name = name + "_py3",
4648
srcs = [name + ".py"],
4749
main = name + ".py",
@@ -55,7 +57,7 @@ def code_sample_py(name):
5557
srcs_version = "PY3",
5658
)
5759

58-
native.py_test(
60+
py_test(
5961
name = name + "_py_test",
6062
size = "small",
6163
srcs = [name + ".py"],

0 commit comments

Comments
 (0)