forked from google-coral/edgetpu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.python
38 lines (35 loc) · 1.09 KB
/
BUILD.python
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
config_setting(
name = "py35",
define_values = {"PY3_VER": "35"}
)
config_setting(
name = "py36",
define_values = {"PY3_VER": "36"}
)
config_setting(
name = "py37",
define_values = {"PY3_VER": "37"}
)
cc_library(
name = "python3-headers",
hdrs = select({
"py35": glob(["python3.5m/*.h",
"python3.5m/numpy/*.h",
"aarch64-linux-gnu/python3.5m/*.h",
"arm-linux-gnueabihf/python3.5m/*.h"]),
"py36": glob(["python3.6m/*.h",
"python3.6m/numpy/*.h",
"aarch64-linux-gnu/python3.6m/*.h",
"arm-linux-gnueabihf/python3.6m/*.h"]),
"py37": glob(["python3.7m/*.h",
"python3.7m/numpy/*.h",
"aarch64-linux-gnu/python3.7m/*.h",
"arm-linux-gnueabihf/python3.7m/*.h"]),
}, no_match_error = "PY3_VER is not specified"),
includes = select({
"py35": [".", "python3.5m"],
"py36": [".", "python3.6m"],
"py37": [".", "python3.7m"],
}, no_match_error = "PY3_VER is not specified"),
visibility = ["//visibility:public"],
)