Skip to content

Commit

Permalink
Bazel: Add python3 target.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxq committed Nov 7, 2019
1 parent 57a940e commit 17ef6d9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
6 changes: 6 additions & 0 deletions WORKSPACE.in
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,12 @@ new_local_repository(
path = "/usr",
)

new_local_repository(
name = "python3",
build_file = "third_party/python3.BUILD",
path = "/usr",
)

# PyTorch
new_local_repository(
name = "pytorch",
Expand Down
14 changes: 14 additions & 0 deletions third_party/python3.BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package(default_visibility = ["//visibility:public"])

licenses(["notice"])

cc_library(
name = "python3",
srcs = glob([
"lib/python3.6/config-3.6m-x86_64-linux-gnu/libpython3.6.so",
]),
hdrs = glob([
"include/python3.6/*.h",
]),
includes = ["include/python3.6"],
)

0 comments on commit 17ef6d9

Please sign in to comment.