Skip to content

Commit 24e8957

Browse files
tensorflower-gardenermralbean
authored andcommitted
Merge pull request tensorflow#36830 from AnotherGroupChat:hermetic-build-fix
PiperOrigin-RevId: 297125647 Change-Id: Ifda9d063b080ccd52e2c493db7928f7320ccf8f7
1 parent 02e5182 commit 24e8957

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

tensorflow/tools/git/BUILD

-1
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,4 @@ py_binary(
1313
srcs = ["gen_git_source.py"],
1414
python_version = "PY3",
1515
srcs_version = "PY2AND3",
16-
deps = ["@six_archive//:six"],
1716
)

tensorflow/tools/git/gen_git_source.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
import shutil
3636
import subprocess
3737

38-
import six
39-
4038

4139
def parse_branch_ref(filename):
4240
"""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):
169167
subprocess.check_output([
170168
"git",
171169
str("--git-dir=%s/.git" % git_base_path),
172-
str("--work-tree=" + six.ensure_str(git_base_path)), "describe",
173-
"--long", "--tags"
170+
str("--work-tree=%s" % git_base_path), "describe", "--long",
171+
"--tags"
174172
]).strip())
175173
version_separator = b"-"
176174
if git_tag_override and val:

tensorflow/tools/lib_package/BUILD

-2
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ genrule(
161161
"@nasm//:LICENSE",
162162
"@nsync//:LICENSE",
163163
"@png//:LICENSE",
164-
"@six_archive//:LICENSE",
165164
"@snappy//:COPYING",
166165
"@sobol_data//:LICENSE",
167166
"@zlib_archive//:zlib.h",
@@ -241,7 +240,6 @@ genrule(
241240
"@nasm//:LICENSE",
242241
"@nsync//:LICENSE",
243242
"@png//:LICENSE",
244-
"@six_archive//:LICENSE",
245243
"@snappy//:COPYING",
246244
"@sobol_data//:LICENSE",
247245
"@zlib_archive//:zlib.h",

0 commit comments

Comments
 (0)