diff --git a/tensorflow/tools/git/BUILD b/tensorflow/tools/git/BUILD index 8a47f4c4c2d1e1..c1f0577f33b4c8 100644 --- a/tensorflow/tools/git/BUILD +++ b/tensorflow/tools/git/BUILD @@ -13,5 +13,4 @@ py_binary( srcs = ["gen_git_source.py"], python_version = "PY3", srcs_version = "PY2AND3", - deps = ["@six_archive//:six"], ) diff --git a/tensorflow/tools/git/gen_git_source.py b/tensorflow/tools/git/gen_git_source.py index 011406e2288047..0cb1d00614280a 100755 --- a/tensorflow/tools/git/gen_git_source.py +++ b/tensorflow/tools/git/gen_git_source.py @@ -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. @@ -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: diff --git a/tensorflow/tools/lib_package/BUILD b/tensorflow/tools/lib_package/BUILD index fb88a61b4248c1..09e3d1b9c2108b 100644 --- a/tensorflow/tools/lib_package/BUILD +++ b/tensorflow/tools/lib_package/BUILD @@ -161,7 +161,6 @@ genrule( "@nasm//:LICENSE", "@nsync//:LICENSE", "@png//:LICENSE", - "@six_archive//:LICENSE", "@snappy//:COPYING", "@sobol_data//:LICENSE", "@zlib_archive//:zlib.h", @@ -241,7 +240,6 @@ genrule( "@nasm//:LICENSE", "@nsync//:LICENSE", "@png//:LICENSE", - "@six_archive//:LICENSE", "@snappy//:COPYING", "@sobol_data//:LICENSE", "@zlib_archive//:zlib.h",