File tree Expand file tree Collapse file tree 8 files changed +15
-29
lines changed Expand file tree Collapse file tree 8 files changed +15
-29
lines changed Original file line number Diff line number Diff line change 14
14
15
15
"""Public entry point for py_binary."""
16
16
17
- load ("//python/private:py_binary_macro.bzl" , _starlark_py_binary = "py_binary" )
17
+ load ("//python/private:py_binary_macro.bzl" , _py_binary = "py_binary" )
18
18
load ("//python/private:register_extension_info.bzl" , "register_extension_info" )
19
19
20
- # buildifier: disable=native-python
21
- _py_binary_impl = _starlark_py_binary
22
-
23
20
def py_binary (** attrs ):
24
21
"""Creates an executable Python program.
25
22
@@ -40,7 +37,7 @@ def py_binary(**attrs):
40
37
if attrs .get ("srcs_version" ) in ("PY2" , "PY2ONLY" ):
41
38
fail ("Python 2 is no longer supported: https://github.com/bazel-contrib/rules_python/issues/886" )
42
39
43
- _py_binary_impl (** attrs )
40
+ _py_binary (** attrs )
44
41
45
42
register_extension_info (
46
43
extension = py_binary ,
Original file line number Diff line number Diff line change 1
1
"""Public entry point for PyCcLinkParamsInfo."""
2
2
3
- load ("//python/private:py_cc_link_params_info.bzl" , _starlark_PyCcLinkParamsInfo = "PyCcLinkParamsInfo" )
3
+ load ("//python/private:py_cc_link_params_info.bzl" , _PyCcLinkParamsInfo = "PyCcLinkParamsInfo" )
4
4
5
- PyCcLinkParamsInfo = _starlark_PyCcLinkParamsInfo
5
+ PyCcLinkParamsInfo = _PyCcLinkParamsInfo
Original file line number Diff line number Diff line change 14
14
15
15
"""Public entry point for PyInfo."""
16
16
17
- load ("//python/private:py_info.bzl" , _starlark_PyInfo = "PyInfo" )
17
+ load ("//python/private:py_info.bzl" , _PyInfo = "PyInfo" )
18
18
19
- PyInfo = _starlark_PyInfo
19
+ PyInfo = _PyInfo
Original file line number Diff line number Diff line change 14
14
15
15
"""Public entry point for py_library."""
16
16
17
- load ("//python/private:py_library_macro.bzl" , _starlark_py_library = "py_library" )
17
+ load ("//python/private:py_library_macro.bzl" , _py_library = "py_library" )
18
18
load ("//python/private:register_extension_info.bzl" , "register_extension_info" )
19
19
20
- # buildifier: disable=native-python
21
- _py_library_impl = _starlark_py_library
22
-
23
20
def py_library (** attrs ):
24
21
"""Creates an executable Python program.
25
22
@@ -37,7 +34,7 @@ def py_library(**attrs):
37
34
if attrs .get ("srcs_version" ) in ("PY2" , "PY2ONLY" ):
38
35
fail ("Python 2 is no longer supported: https://github.com/bazel-contrib/rules_python/issues/886" )
39
36
40
- _py_library_impl (** attrs )
37
+ _py_library (** attrs )
41
38
42
39
register_extension_info (
43
40
extension = py_library ,
Original file line number Diff line number Diff line change 14
14
15
15
"""Public entry point for py_runtime."""
16
16
17
- load ("//python/private:py_runtime_macro.bzl" , _starlark_py_runtime = "py_runtime" )
18
-
19
- # buildifier: disable=native-python
20
- _py_runtime_impl = _starlark_py_runtime
17
+ load ("//python/private:py_runtime_macro.bzl" , _py_runtime = "py_runtime" )
21
18
22
19
def py_runtime (** attrs ):
23
20
"""Creates an executable Python program.
@@ -38,4 +35,4 @@ def py_runtime(**attrs):
38
35
if attrs .get ("python_version" ) == "PY2" :
39
36
fail ("Python 2 is no longer supported: see https://github.com/bazel-contrib/rules_python/issues/886" )
40
37
41
- _py_runtime_impl (** attrs )
38
+ _py_runtime (** attrs )
Original file line number Diff line number Diff line change 14
14
15
15
"""Public entry point for PyRuntimeInfo."""
16
16
17
- load ("//python/private:py_runtime_info.bzl" , _starlark_PyRuntimeInfo = "PyRuntimeInfo" )
17
+ load ("//python/private:py_runtime_info.bzl" , _PyRuntimeInfo = "PyRuntimeInfo" )
18
18
19
- PyRuntimeInfo = _starlark_PyRuntimeInfo
19
+ PyRuntimeInfo = _PyRuntimeInfo
Original file line number Diff line number Diff line change 14
14
15
15
"""Public entry point for py_runtime_pair."""
16
16
17
- load ("//python/private:py_runtime_pair_macro.bzl" , _starlark_impl = "py_runtime_pair" )
18
-
19
- _py_runtime_pair = _starlark_impl
17
+ load ("//python/private:py_runtime_pair_macro.bzl" , _py_runtime_pair = "py_runtime_pair" )
20
18
21
19
# NOTE: This doc is copy/pasted from the builtin py_runtime_pair rule so our
22
20
# doc generator gives useful API docs.
Original file line number Diff line number Diff line change 14
14
15
15
"""Public entry point for py_test."""
16
16
17
- load ("//python/private:py_test_macro.bzl" , _starlark_py_test = "py_test" )
17
+ load ("//python/private:py_test_macro.bzl" , _py_test = "py_test" )
18
18
load ("//python/private:register_extension_info.bzl" , "register_extension_info" )
19
19
20
- # buildifier: disable=native-python
21
- _py_test_impl = _starlark_py_test
22
-
23
20
def py_test (** attrs ):
24
21
"""Creates an executable Python program.
25
22
@@ -41,7 +38,7 @@ def py_test(**attrs):
41
38
fail ("Python 2 is no longer supported: https://github.com/bazel-contrib/rules_python/issues/886" )
42
39
43
40
# buildifier: disable=native-python
44
- _py_test_impl (** attrs )
41
+ _py_test (** attrs )
45
42
46
43
register_extension_info (
47
44
extension = py_test ,
You can’t perform that action at this time.
0 commit comments