aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Gunhan Gulsoy <gunan@google.com>2018-10-09 22:57:45 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-09 23:02:32 -0700
commitdcf641daac0f2fee74eafbb0de1d32f6c8c4c6fd (patch)
tree4bcaa551d91efa4148bcf06075489030700b3f03
parent91d625c6f0377bb629b2509bb4f5cb040d870244 (diff)
Remove python shebang line from gen_git_source.
PiperOrigin-RevId: 216479972
-rw-r--r--tensorflow/tensorflow.bzl4
-rw-r--r--tensorflow/tools/git/BUILD6
-rwxr-xr-xtensorflow/tools/git/gen_git_source.py1
3 files changed, 6 insertions, 5 deletions
diff --git a/tensorflow/tensorflow.bzl b/tensorflow/tensorflow.bzl
index cad5de1b0c..df15914233 100644
--- a/tensorflow/tensorflow.bzl
+++ b/tensorflow/tensorflow.bzl
@@ -1967,9 +1967,9 @@ def tf_version_info_genrule():
],
outs = ["util/version_info.cc"],
cmd =
- "$(location //tensorflow/tools/git:gen_git_source.py) --generate $(SRCS) \"$@\" --git_tag_override=$${GIT_TAG_OVERRIDE:-}",
+ "$(location //tensorflow/tools/git:gen_git_source) --generate $(SRCS) \"$@\" --git_tag_override=$${GIT_TAG_OVERRIDE:-}",
local = 1,
- tools = [clean_dep("//tensorflow/tools/git:gen_git_source.py")],
+ tools = [clean_dep("//tensorflow/tools/git:gen_git_source")],
)
def tf_py_build_info_genrule():
diff --git a/tensorflow/tools/git/BUILD b/tensorflow/tools/git/BUILD
index daa17fbd50..34a5167948 100644
--- a/tensorflow/tools/git/BUILD
+++ b/tensorflow/tools/git/BUILD
@@ -6,6 +6,8 @@ package(default_visibility = ["//tensorflow:internal"])
licenses(["notice"]) # Apache 2.0
-exports_files(
- ["gen_git_source.py"],
+py_binary(
+ name = "gen_git_source",
+ srcs = ["gen_git_source.py"],
+ srcs_version = "PY2AND3",
)
diff --git a/tensorflow/tools/git/gen_git_source.py b/tensorflow/tools/git/gen_git_source.py
index cc2288a7fa..8e7cd9b104 100755
--- a/tensorflow/tools/git/gen_git_source.py
+++ b/tensorflow/tools/git/gen_git_source.py
@@ -1,4 +1,3 @@
-#!/usr/bin/env python
# Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");