1 parent 320ee3c commit 6544e4cCopy full SHA for 6544e4c
1 file changed
setup.py
@@ -1,6 +1,7 @@
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
import codecs
4
+import sys
5
6
try:
7
from setuptools import setup, find_packages
@@ -11,6 +12,13 @@
11
12
13
import github2
14
15
+
16
+install_requires = ['httplib2', ]
17
+# simplejson is included in the standard library since Python 2.6 as json.
18
+if sys.version_info[:2] < (2, 6):
19
+ install_requires.append('simplejson >= 2.0.9')
20
21
22
setup(
23
name='github2',
24
version=github2.__version__,
@@ -22,9 +30,7 @@
30
platforms=["any"],
31
packages=find_packages(exclude=['ez_setup', 'tests']),
32
scripts=['github2/bin/github_manage_collaborators'],
25
- install_requires=[
26
- "httplib2",
27
- ],
33
+ install_requires=install_requires,
28
34
classifiers=[
29
35
"Development Status :: 3 - Alpha",
36
"Operating System :: OS Independent",
0 commit comments