Skip to content
This repository was archived by the owner on Oct 7, 2025. It is now read-only.

Commit d158e8b

Browse files
authored
Python (#9)
* chore: add python This runs cgo, so we need to add a hermetic cc toolchain and avoid linking against libc * chore: unfork go-tree-sitter This would break other extensions. See bazel-contrib/rules_python#2952 * add py file
1 parent 5ae73f1 commit d158e8b

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

BUILD

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ gazelle_binary(
77
"@gazelle//language/proto:go_default_library",
88
"@gazelle//language/go:go_default_library",
99
"@gazelle_cc//language/cc",
10-
# FIXME(alexeagle): get this to compile
11-
# "@rules_python_gazelle_plugin//python",
10+
"@rules_python_gazelle_plugin//python",
1211
],
1312
)

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ single_version_override(
1818
patch_strip = 2,
1919
patches = ["patches/rules_python.patch"],
2020
)
21+
2122
go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk")
2223

2324
# Download an SDK for the host OS & architecture as well as common remote execution

example/__main__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
if __name__ == "__main__":
2+
print("Hello, World!")

0 commit comments

Comments
 (0)