Buildify some hand-written BUILD files
We currently exclude third_party BUILD files from buildifier, but some
of these are hand-written and so can be reasonably formatted.
Also, fixes a random flatbuffers BUILD file that I believe had randomly
diverged from upstream for some reason.
Change-Id: I03141e25556f52b7b80b46c700f570689cc38a1f
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/third_party/python/BUILD b/third_party/python/BUILD
index 46c464c..5e3278a 100644
--- a/third_party/python/BUILD
+++ b/third_party/python/BUILD
@@ -2,10 +2,6 @@
cc_library(
name = "python",
- deps = [
- "@python3_9_x86_64-unknown-linux-gnu//:python_headers",
- "@python3_9_x86_64-unknown-linux-gnu//:libpython",
- ],
defines = [
"FRC971_UPSTREAM_BUNDLED_PYTHON",
"FRC971_PYTHON_HOME=../python3_9_x86_64-unknown-linux-gnu/",
@@ -15,6 +11,10 @@
"@platforms//os:linux",
],
visibility = ["//visibility:public"],
+ deps = [
+ "@python3_9_x86_64-unknown-linux-gnu//:libpython",
+ "@python3_9_x86_64-unknown-linux-gnu//:python_headers",
+ ],
)
filegroup(
@@ -31,8 +31,8 @@
extract_numpy_headers(
name = "numpy_headers",
- numpy = "@pip//numpy",
header_prefix = "numpy_headers",
+ numpy = "@pip//numpy",
visibility = ["//visibility:private"],
)
@@ -44,8 +44,8 @@
includes = [
"numpy_headers",
],
+ visibility = ["//visibility:public"],
deps = [
":python",
],
- visibility = ["//visibility:public"],
)