File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change 3131 sys .exit (1 )
3232
3333from 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
5935packages = [
6036 'apiclient' ,
You can’t perform that action at this time.
0 commit comments