Skip to content

Commit 9d0f66c

Browse files
committed
enum34 is not compatible with python3.5
1 parent abc24cb commit 9d0f66c

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

setup.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import codecs
33
import os
44
import re
5+
import sys
56

67
here = os.path.abspath(os.path.dirname(__file__))
78

@@ -26,6 +27,15 @@ def find_version(*file_paths):
2627
with 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+
2939
setup(
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
)

0 commit comments

Comments
 (0)