aboutsummaryrefslogtreecommitdiffhomepage
path: root/util/python/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'util/python/BUILD')
-rw-r--r--util/python/BUILD28
1 files changed, 26 insertions, 2 deletions
diff --git a/util/python/BUILD b/util/python/BUILD
index 96daf9947a..29688b875d 100644
--- a/util/python/BUILD
+++ b/util/python/BUILD
@@ -2,7 +2,31 @@ licenses(["restricted"])
package(default_visibility = ["//visibility:public"])
-alias(
+cc_library(
name = "python_headers",
- actual = "@local_config_python//:python_headers",
+ hdrs = glob([
+ "python_include/**/*.h",
+ ]),
+ data = [":python_checked"],
+ includes = ["python_include"],
+)
+
+genrule(
+ name = "python_check",
+ srcs = [
+ "python_config.sh",
+ "configure_files",
+ ],
+ outs = [
+ "python_checked",
+ ],
+ cmd = "OUTPUTDIR=\"$(@D)/\"; $(location :python_config.sh) --check && touch $$OUTPUTDIR/python_checked",
+ local = 1,
+)
+
+filegroup(
+ name = "configure_files",
+ data = glob([
+ "*",
+ ]),
)