We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e08fefc commit cf7e668Copy full SHA for cf7e668
1 file changed
setup.py
@@ -268,7 +268,7 @@ def run_setup(extensions):
268
[Extension('cassandra.%s' % m, ['cassandra/%s.py' % m], extra_compile_args=compile_args) for m in cython_candidates],
269
exclude_failures=True))
270
except ImportError:
271
- print("Cython is not installed. Not compiling core driver files as extensions (optional).")
+ sys.stderr.write("Cython is not installed. Not compiling core driver files as extensions (optional).")
272
273
if "--no-extensions" in sys.argv:
274
extensions = []
@@ -290,14 +290,25 @@ def run_setup(extensions):
290
===============================================================================
291
"""
292
293
+pypy_unsupported_msg = \
294
+"""
295
+=================================================================================
296
+Some optional C extensions are not supported in PyPy. Only murmur3 will be built.
297
298
299
+
300
if extensions:
- if (sys.platform.startswith("java")
- or sys.platform == "cli"):
301
+ if "PyPy" in sys.version:
302
+ sys.stderr.write(pypy_unsupported_msg)
303
+ extensions = [ext for ext in extensions if ext is murmur3_ext]
304
305
+ if (sys.platform.startswith("java") or sys.platform == "cli"):
306
sys.stderr.write(platform_unsupported_msg)
- extensions = ()
307
+ extensions = []
308
elif sys.byteorder == "big":
309
sys.stderr.write(arch_unsupported_msg)
310
311
312
313
while True:
314
# try to build as many of the extensions as we can
0 commit comments