tensorflow/util/python/BUILD
Kristina Chodorow 8cda66e19c Make python_check relocatable
Uses $location in the genrule and a path that's relative to the
script to find expected files so that this works both as a local
rule and if tensorflow is used as a remote repository.
2016-02-04 15:08:22 -08:00

25 lines
507 B
Python

licenses(["restricted"])
package(default_visibility = ["//visibility:public"])
cc_library(
name = "python_headers",
hdrs = glob([
"python_include/**/*.h",
]),
data = [":python_checked"],
includes = ["python_include"],
)
genrule(
name = "python_check",
srcs = [
"python_config.sh",
],
outs = [
"python_checked",
],
cmd = "OUTPUTDIR=\"$(@D)/\"; $(location :python_config.sh) --check && touch $$OUTPUTDIR/python_checked",
local = 1,
)