Make gen_build_info genrule to use a py_binary.
This makes the script more platform independent. PiperOrigin-RevId: 217028598
This commit is contained in:
parent
f868981c38
commit
b47a10d0a2
@ -1113,7 +1113,10 @@ py_test(
|
||||
],
|
||||
main = "platform/build_info_test.py",
|
||||
srcs_version = "PY2AND3",
|
||||
tags = ["notap"],
|
||||
tags = [
|
||||
"no_pip",
|
||||
"notap",
|
||||
],
|
||||
deps = [
|
||||
":client_testlib",
|
||||
":platform",
|
||||
|
@ -1980,9 +1980,9 @@ def tf_py_build_info_genrule():
|
||||
name = "py_build_info_gen",
|
||||
outs = ["platform/build_info.py"],
|
||||
cmd =
|
||||
"$(location //tensorflow/tools/build_info:gen_build_info.py) --raw_generate \"$@\" --build_config " + if_cuda("cuda", "cpu"),
|
||||
"$(location //tensorflow/tools/build_info:gen_build_info) --raw_generate \"$@\" --build_config " + if_cuda("cuda", "cpu"),
|
||||
local = 1,
|
||||
tools = [clean_dep("//tensorflow/tools/build_info:gen_build_info.py")],
|
||||
tools = [clean_dep("//tensorflow/tools/build_info:gen_build_info")],
|
||||
)
|
||||
|
||||
def cc_library_with_android_deps(
|
||||
|
@ -4,8 +4,8 @@ package(default_visibility = ["//tensorflow:internal"])
|
||||
|
||||
licenses(["notice"]) # Apache 2.0
|
||||
|
||||
exports_files(
|
||||
glob(["gen/*"]) + [
|
||||
"gen_build_info.py",
|
||||
],
|
||||
py_binary(
|
||||
name = "gen_build_info",
|
||||
srcs = ["gen_build_info.py"],
|
||||
srcs_version = "PY2AND3",
|
||||
)
|
||||
|
@ -1,4 +1,3 @@
|
||||
#!/usr/bin/env python
|
||||
# Copyright 2017 The TensorFlow Authors. All Rights Reserved.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
|
Loading…
Reference in New Issue
Block a user