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 22import codecs
33import os
44import re
5+ import sys
56
67here = os .path .abspath (os .path .dirname (__file__ ))
78
@@ -26,6 +27,15 @@ def find_version(*file_paths):
2627with codecs .open ('README.rst' , encoding = 'utf-8' ) as f :
2728 long_description = f .read ()
2829
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+
2939setup (
3040 name = 'opentok' ,
3141 version = find_version ('opentok' , 'version.py' ),
@@ -68,12 +78,7 @@ def find_version(*file_paths):
6878
6979 packages = find_packages (exclude = ["contrib" , "docs" , "tests*" ]),
7080
71- install_requires = [
72- 'requests' ,
73- 'enum34' ,
74- 'six' ,
75- 'pytz' ,
76- ],
81+ install_requires = install_requires ,
7782
7883 include_package_data = True ,
7984)
You can’t perform that action at this time.
0 commit comments