Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fc246fe

Browse files
authored
Remove unnecessary check during setup (googleapis#518)
1 parent a737c75 commit fc246fe

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

setup.py

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -31,30 +31,6 @@
3131
sys.exit(1)
3232

3333
from setuptools import setup
34-
import pkg_resources
35-
36-
def _DetectBadness():
37-
import os
38-
if 'SKIP_GOOGLEAPICLIENT_COMPAT_CHECK' in os.environ:
39-
return
40-
o2c_pkg = None
41-
try:
42-
o2c_pkg = pkg_resources.get_distribution('oauth2client')
43-
except pkg_resources.DistributionNotFound:
44-
pass
45-
oauth2client = None
46-
try:
47-
import oauth2client
48-
except ImportError:
49-
pass
50-
if o2c_pkg is None and oauth2client is not None:
51-
raise RuntimeError(
52-
'Previous version of google-api-python-client detected; due to a '
53-
'packaging issue, we cannot perform an in-place upgrade. Please remove '
54-
'the old version and re-install this package.'
55-
)
56-
57-
_DetectBadness()
5834

5935
packages = [
6036
'apiclient',

0 commit comments

Comments
 (0)