aboutsummaryrefslogtreecommitdiffhomepage
path: root/util/python/BUILD
blob: 861cd8d6ff143f8d3d7145234c1d346eeabb7880 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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)/\"; ./util/python/python_config.sh --check && touch $$OUTPUTDIR/python_checked",
    local = 1,
)