THRIFT-3613 Port Python C extension to Python 3
Client: Python
Patch: Nobuaki Sukegawa
This closes #845
diff --git a/lib/py/setup.py b/lib/py/setup.py
index 67e9d52..ca10096 100644
--- a/lib/py/setup.py
+++ b/lib/py/setup.py
@@ -19,7 +19,6 @@
# under the License.
#
-import platform
import sys
try:
from setuptools import setup, Extension
@@ -108,11 +107,7 @@
)
try:
- with_binary = False
- # Don't even try to build the C module unless we're on CPython 2.x.
- # TODO: fix it for CPython 3.x
- if platform.python_implementation() == 'CPython' and sys.version_info < (3,):
- with_binary = True
+ with_binary = True
run_setup(with_binary)
except BuildFailed:
print()