Skip to content

Commit 105edbc

Browse files
adarobcopybara-github
authored andcommitted
Fix python_version in PY2 backport deps.
PiperOrigin-RevId: 284206730
1 parent 792b14f commit 105edbc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@
5454
'tqdm',
5555
'wrapt',
5656
# Python 2 backports
57-
'bz2file;python_version<"2"',
58-
'functools32;python_version<"2"',
59-
'futures;python_version<"2"',
57+
'bz2file;python_version<"3"',
58+
'functools32;python_version<"3"',
59+
'futures;python_version<"3"',
6060
# shutil.disk_usage was introduced in Python 3.3, use psutil instead.
6161
'psutil;python_version<"3.3"',
6262
# enum introduced in Python 3.4
@@ -70,7 +70,7 @@
7070
'pytest',
7171
'pytest-xdist',
7272
# Python 2 backports
73-
'mock;python_version<"2"',
73+
'mock;python_version<"3"',
7474
# TODO(b/142892342): Re-enable
7575
# 'tensorflow-docs @ git+https://github.com/tensorflow/docs#egg=tensorflow-docs', # pylint: disable=line-too-long
7676
]

0 commit comments

Comments
 (0)