Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Commit 0040dbe

Browse files
mctavishcopybara-github
authored andcommitted
Use conditional requirements for google-api-core.
PiperOrigin-RevId: 369500403 Change-Id: I0eca3f902a45b8b8ef1f8648f0c7e6797bdef6b0
1 parent f3cf7d1 commit 0040dbe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/setup.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
from glob import glob
2424
import os
2525
import re
26-
import sys
2726
from distutils import sysconfig
2827
from setuptools import Extension
2928
from setuptools import setup
@@ -113,8 +112,8 @@ def ReadConfig(section, value, default):
113112
'google-auth==1.8.2; python_version < "3.0"',
114113
'google-auth>=1.0.0; python_version > "3.0"',
115114
'google-auth-httplib2',
116-
'google-api-core==1.15.0'
117-
if sys.version_info.major < 3 else 'google-api-core',
115+
'google-api-core==1.15.0; python_version < "3.0"',
116+
'google-api-core; python_version > "3.0"',
118117
'pyyaml',
119118
'six>=1.10.0',
120119
],

0 commit comments

Comments
 (0)