Skip to content

Commit

Permalink
Remove dependency on rules_python (#790)
Browse files Browse the repository at this point in the history
  • Loading branch information
luispadron authored Oct 25, 2023
1 parent 2727aa8 commit 75bd10e
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 24 deletions.
15 changes: 0 additions & 15 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,6 @@ bazel_dep(
name = "rules_cc",
version = "0.0.6",
)
bazel_dep(
name = "rules_python",
version = "0.24.0",
)
bazel_dep(
name = "rules_swift",
version = "1.13.0",
Expand Down Expand Up @@ -111,14 +107,3 @@ use_repo(
apple_non_module_deps,
"xctestrunner",
)

# Register the Python toolchain
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
python.toolchain(
is_default = True,
python_version = "3.9",
)
use_repo(
python,
"python_versions",
)
3 changes: 1 addition & 2 deletions data_generators/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
load("@rules_python//python:defs.bzl", "py_binary")

py_binary(
name = "xcspec_extractor",
srcs = ["xcspec_extractor.py"],
srcs_version = "PY3",
)

genrule(
Expand Down
2 changes: 1 addition & 1 deletion rules/framework/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
load("@rules_python//python:defs.bzl", "py_binary")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")

py_binary(
name = "framework_packaging",
srcs = ["framework_packaging.py"],
srcs_version = "PY3",
visibility = ["//visibility:public"],
)

Expand Down
4 changes: 2 additions & 2 deletions rules/test/lldb/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
load("@rules_python//python:defs.bzl", "py_library")

package(default_visibility = ["//visibility:public"])

exports_files([
Expand All @@ -14,6 +12,7 @@ py_library(
srcs = [
":sim_template.py",
],
srcs_version = "PY3",
)

# Wrap this to feed into py_library - doesn't like the name with the dot in it
Expand All @@ -29,6 +28,7 @@ py_library(
srcs = [
"lldb_sim_runner.py",
],
srcs_version = "PY3",
deps = [
":ios_sim_template_lib",
],
Expand Down
4 changes: 2 additions & 2 deletions rules/test/lldb/lldb_test.bzl
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
load("@rules_python//python:defs.bzl", "py_test")
load("@bazel_skylib//rules:write_file.bzl", "write_file")

# End to end "Shell" test that a breakpoint can resolve a location
Expand Down Expand Up @@ -98,12 +97,13 @@ def _ios_breakpoint_test_wrapper(name, application, cmds, test_spec, sdk, device
visibility = ["//visibility:public"],
)

py_test(
native.py_test(
name = name,
main = "@build_bazel_rules_ios//rules/test/lldb:lldb_breakpoint_test_main.py",
srcs = [
"@build_bazel_rules_ios//rules/test/lldb:lldb_breakpoint_test_main.py",
],
srcs_version = "PY3",
args = [
"--app",
"$(execpath " + application + ").app",
Expand Down
3 changes: 1 addition & 2 deletions tools/xcodeproj_shims/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
load("@rules_python//python:defs.bzl", "py_binary")

STUB_VISIBILITY = ["//visibility:public"]

sh_binary(
Expand All @@ -23,6 +21,7 @@ sh_binary(
py_binary(
name = "print_json_leaf_nodes",
srcs = ["print_json_leaf_nodes.py"],
srcs_version = "PY3",
visibility = STUB_VISIBILITY,
)

Expand Down

0 comments on commit 75bd10e

Please sign in to comment.