Blame SOURCES/grpc-1.26.0-grpcio-tests-conditionalize-enum34.patch

rdobuilder dca260
diff -Naur grpc-1.26.0-original/src/python/grpcio_tests/setup.py grpc-1.26.0/src/python/grpcio_tests/setup.py
rdobuilder dca260
--- grpc-1.26.0-original/src/python/grpcio_tests/setup.py	2019-12-17 20:29:27.000000000 -0500
rdobuilder dca260
+++ grpc-1.26.0/src/python/grpcio_tests/setup.py	2021-02-02 09:11:20.236194502 -0500
rdobuilder dca260
@@ -37,7 +37,7 @@
rdobuilder dca260
 }
rdobuilder dca260
 
rdobuilder dca260
 INSTALL_REQUIRES = (
rdobuilder dca260
-    'coverage>=4.0', 'enum34>=1.0.4',
rdobuilder dca260
+    'coverage>=4.0',
rdobuilder dca260
     'grpcio>={version}'.format(version=grpc_version.VERSION),
rdobuilder dca260
     'grpcio-channelz>={version}'.format(version=grpc_version.VERSION),
rdobuilder dca260
     'grpcio-status>={version}'.format(version=grpc_version.VERSION),
rdobuilder dca260
@@ -48,6 +48,8 @@
rdobuilder dca260
 
rdobuilder dca260
 if not PY3:
rdobuilder dca260
     INSTALL_REQUIRES += ('futures>=2.2.0',)
rdobuilder dca260
+if sys.version_info < (3, 4):
rdobuilder dca260
+    INSTALL_REQUIRES += ('enum34>=1.0.4',)
rdobuilder dca260
 
rdobuilder dca260
 COMMAND_CLASS = {
rdobuilder dca260
     # Run `preprocess` *before* doing any packaging!