From dcf641daac0f2fee74eafbb0de1d32f6c8c4c6fd Mon Sep 17 00:00:00 2001 From: Gunhan Gulsoy Date: Tue, 9 Oct 2018 22:57:45 -0700 Subject: Remove python shebang line from gen_git_source. PiperOrigin-RevId: 216479972 --- tensorflow/tensorflow.bzl | 4 ++-- tensorflow/tools/git/BUILD | 6 ++++-- tensorflow/tools/git/gen_git_source.py | 1 - 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"); -- cgit v1.2.3