@@ -22,7 +22,7 @@ load("@local_config_cuda//cuda:build_defs.bzl", _cuda_library = "cuda_library",
22
22
load ("@local_config_rocm//rocm:build_defs.bzl" , _if_rocm_is_configured = "if_rocm_is_configured" , _rocm_library = "rocm_library" )
23
23
load ("@python_version_repo//:py_version.bzl" , "HERMETIC_PYTHON_VERSION" )
24
24
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" )
26
26
load ("@xla//third_party/py:python_wheel.bzl" , "collect_data_files" , "transitive_py_deps" )
27
27
load ("@xla//xla/tsl:tsl.bzl" , "transitive_hdrs" , _if_windows = "if_windows" , _pybind_extension = "tsl_pybind_extension_opensource" )
28
28
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 = []
144
144
145
145
def pytype_library (name , pytype_srcs = None , ** kwargs ):
146
146
_ = pytype_srcs # @unused
147
- native . py_library (name = name , ** kwargs )
147
+ py_library (name = name , ** kwargs )
148
148
149
149
def pytype_strict_library (name , pytype_srcs = [], ** kwargs ):
150
150
data = pytype_srcs + (kwargs ["data" ] if "data" in kwargs else [])
151
151
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 )
153
153
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
156
156
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 ):
158
158
data = pytype_srcs + (kwargs ["data" ] if "data" in kwargs else [])
159
159
new_kwargs = {k : v for k , v in kwargs .items () if k != "data" }
160
160
lib_rule (name = name , data = data , ** new_kwargs )
0 commit comments