Skip to content

Commit

Permalink
Merge pull request tensorflow#36830 from AnotherGroupChat:hermetic-bu…
Browse files Browse the repository at this point in the history
…ild-fix

PiperOrigin-RevId: 297125647
Change-Id: Ifda9d063b080ccd52e2c493db7928f7320ccf8f7
  • Loading branch information
tensorflower-gardener authored and mralbean committed Apr 3, 2020
1 parent 02e5182 commit 24e8957
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
1 change: 0 additions & 1 deletion tensorflow/tools/git/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,4 @@ py_binary(
srcs = ["gen_git_source.py"],
python_version = "PY3",
srcs_version = "PY2AND3",
deps = ["@six_archive//:six"],
)
6 changes: 2 additions & 4 deletions tensorflow/tools/git/gen_git_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
import shutil
import subprocess

import six


def parse_branch_ref(filename):
"""Given a filename of a .git/HEAD file return ref path.
Expand Down Expand Up @@ -169,8 +167,8 @@ def get_git_version(git_base_path, git_tag_override):
subprocess.check_output([
"git",
str("--git-dir=%s/.git" % git_base_path),
str("--work-tree=" + six.ensure_str(git_base_path)), "describe",
"--long", "--tags"
str("--work-tree=%s" % git_base_path), "describe", "--long",
"--tags"
]).strip())
version_separator = b"-"
if git_tag_override and val:
Expand Down
2 changes: 0 additions & 2 deletions tensorflow/tools/lib_package/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,6 @@ genrule(
"@nasm//:LICENSE",
"@nsync//:LICENSE",
"@png//:LICENSE",
"@six_archive//:LICENSE",
"@snappy//:COPYING",
"@sobol_data//:LICENSE",
"@zlib_archive//:zlib.h",
Expand Down Expand Up @@ -241,7 +240,6 @@ genrule(
"@nasm//:LICENSE",
"@nsync//:LICENSE",
"@png//:LICENSE",
"@six_archive//:LICENSE",
"@snappy//:COPYING",
"@sobol_data//:LICENSE",
"@zlib_archive//:zlib.h",
Expand Down

0 comments on commit 24e8957

Please sign in to comment.