Permalink
Browse files

Don't try to compile the extension against PyPy.

  • Loading branch information...
1 parent ab77961 commit c96a417acc6d7840e284a46b75552a42d32d025d @alex alex committed Jan 11, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 setup.py
View
@@ -94,7 +94,8 @@ def build_extension(self, ext):
raise BuildFailed()
cmdclass['build_ext'] = ve_build_ext
-if os.path.isfile('logbook/_speedups.c'):
+# Don't try to compile the extension if we're running on PyPy
+if os.path.isfile('logbook/_speedups.c') and not hasattr(sys, "pypy_translation_info"):
speedups = Feature('optional C speed-enhancement module', standard=True,
ext_modules=[Extension('logbook._speedups',
['logbook/_speedups.c'])])

0 comments on commit c96a417

Please sign in to comment.