Skip to content

Commit 9f4a471

Browse files
committed
Merge pull request #459 from daroot/setup-cant-import-six
Don't use six.PY2 in setup.py
2 parents 3e99362 + 8dad0cb commit 9f4a471

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

setup.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env python
22

33
import codecs
4-
import six
54
import sys
65

76
from setuptools import setup, find_packages
@@ -15,7 +14,7 @@
1514
install_requires.append("pyOpenSSL >= 0.14")
1615
requires.append("pyOpenSSL(>=0.14)")
1716

18-
if six.PY2:
17+
if sys.version_info[0:3] <= (3, 0, 0):
1918
install_requires.append('protobuf >=2.4.1, <2.7.0')
2019
requires.append('protobuf(>=2.4.1, <2.7.0)')
2120
else:

0 commit comments

Comments
 (0)