aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/py/BUILD.tpl
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-06-27 16:33:00 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-06-27 16:37:09 -0700
commit50b999a8336d19400ab75aea66fe46eca2f5fe0b (patch)
tree7cba4f4af6b131c253b65ff9f2923e851184668c /third_party/py/BUILD.tpl
parentd6d58a3a1785785679af56c0f8f131e7312b8226 (diff)
Merge changes from github.
PiperOrigin-RevId: 160344052
Diffstat (limited to 'third_party/py/BUILD.tpl')
-rw-r--r--third_party/py/BUILD.tpl12
1 files changed, 12 insertions, 0 deletions
diff --git a/third_party/py/BUILD.tpl b/third_party/py/BUILD.tpl
index 1ee9c071ad..cdfe9c9b45 100644
--- a/third_party/py/BUILD.tpl
+++ b/third_party/py/BUILD.tpl
@@ -6,6 +6,16 @@ cc_library(
name = "python_headers",
hdrs = [":python_include"],
includes = ["python_include"],
+ data = select({
+ ":windows" : [":python_import_lib"],
+ "//conditions:default": [],
+ }),
+ linkopts = select({
+ # TODO(pcloudy): Ideally, this should just go into deps after resolving
+ # https://github.com/bazelbuild/bazel/issues/3237,
+ ":windows" : ["$(locations :python_import_lib)"],
+ "//conditions:default": [],
+ }),
)
cc_library(
@@ -22,4 +32,6 @@ config_setting(
%{PYTHON_INCLUDE_GENRULE}
+%{PYTHON_IMPORT_LIB_GENRULE}
+
%{NUMPY_INCLUDE_GENRULE}