Skip to content

Commit 9fa4fb7

Browse files
Merge pull request #28358 from rickeylev:rm.native.py
PiperOrigin-RevId: 752437880
2 parents 84eecb2 + 936762f commit 9fa4fb7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jaxlib/jax.bzl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ load("@local_config_cuda//cuda:build_defs.bzl", _cuda_library = "cuda_library",
2222
load("@local_config_rocm//rocm:build_defs.bzl", _if_rocm_is_configured = "if_rocm_is_configured", _rocm_library = "rocm_library")
2323
load("@python_version_repo//:py_version.bzl", "HERMETIC_PYTHON_VERSION")
2424
load("@rules_cc//cc:defs.bzl", _cc_proto_library = "cc_proto_library")
25-
load("@rules_python//python:defs.bzl", "py_test")
25+
load("@rules_python//python:defs.bzl", "py_library", "py_test")
2626
load("@xla//third_party/py:python_wheel.bzl", "collect_data_files", "transitive_py_deps")
2727
load("@xla//xla/tsl:tsl.bzl", "transitive_hdrs", _if_windows = "if_windows", _pybind_extension = "tsl_pybind_extension_opensource")
2828
load("@xla//xla/tsl/platform:build_config_root.bzl", _tf_cuda_tests_tags = "tf_cuda_tests_tags", _tf_exec_properties = "tf_exec_properties")
@@ -144,17 +144,17 @@ jax2tf_deps = []
144144

145145
def pytype_library(name, pytype_srcs = None, **kwargs):
146146
_ = pytype_srcs # @unused
147-
native.py_library(name = name, **kwargs)
147+
py_library(name = name, **kwargs)
148148

149149
def pytype_strict_library(name, pytype_srcs = [], **kwargs):
150150
data = pytype_srcs + (kwargs["data"] if "data" in kwargs else [])
151151
new_kwargs = {k: v for k, v in kwargs.items() if k != "data"}
152-
native.py_library(name = name, data = data, **new_kwargs)
152+
py_library(name = name, data = data, **new_kwargs)
153153

154-
py_strict_library = native.py_library
155-
py_strict_test = native.py_test
154+
py_strict_library = py_library
155+
py_strict_test = py_test
156156

157-
def py_library_providing_imports_info(*, name, lib_rule = native.py_library, pytype_srcs = [], **kwargs):
157+
def py_library_providing_imports_info(*, name, lib_rule = py_library, pytype_srcs = [], **kwargs):
158158
data = pytype_srcs + (kwargs["data"] if "data" in kwargs else [])
159159
new_kwargs = {k: v for k, v in kwargs.items() if k != "data"}
160160
lib_rule(name = name, data = data, **new_kwargs)

0 commit comments

Comments
 (0)