File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 2
2
import codecs
3
3
import os
4
4
import re
5
+ import sys
5
6
6
7
here = os .path .abspath (os .path .dirname (__file__ ))
7
8
@@ -26,6 +27,15 @@ def find_version(*file_paths):
26
27
with codecs .open ('README.rst' , encoding = 'utf-8' ) as f :
27
28
long_description = f .read ()
28
29
30
+ install_requires = [
31
+ 'requests' ,
32
+ 'six' ,
33
+ 'pytz' ,
34
+ ]
35
+
36
+ if sys .version_info .major < 3 or sys .version_info .minor < 4 :
37
+ install_requires .append ('enum34' )
38
+
29
39
setup (
30
40
name = 'opentok' ,
31
41
version = find_version ('opentok' , 'version.py' ),
@@ -68,12 +78,7 @@ def find_version(*file_paths):
68
78
69
79
packages = find_packages (exclude = ["contrib" , "docs" , "tests*" ]),
70
80
71
- install_requires = [
72
- 'requests' ,
73
- 'enum34' ,
74
- 'six' ,
75
- 'pytz' ,
76
- ],
81
+ install_requires = install_requires ,
77
82
78
83
include_package_data = True ,
79
84
)
You can’t perform that action at this time.
0 commit comments