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

Skip to content

Commit a540cf7

Browse files
committed
Require python >= 2.6.
1 parent 2aecffb commit a540cf7

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

setup.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717
Also installs included versions of third party libraries, if those libraries
1818
are not already installed.
1919
"""
20+
from __future__ import print_function
21+
22+
import sys
23+
24+
if sys.version_info <= (2, 6):
25+
print('oauth2client requires python version >= 2.6.', file=sys.stderr)
26+
sys.exit(1)
27+
2028
from setuptools import setup
2129

2230
packages = [
@@ -29,18 +37,6 @@
2937
'httplib2>=0.8',
3038
]
3139

32-
needs_json = False
33-
try:
34-
import json
35-
except ImportError:
36-
try:
37-
import simplejson
38-
except ImportError:
39-
needs_json = True
40-
41-
if needs_json:
42-
install_requires.append('simplejson')
43-
4440
long_desc = """The Google API Client for Python is a client library for
4541
accessing the Plus, Moderator, and many other Google APIs."""
4642

0 commit comments

Comments
 (0)