Browse files

Merge pull request #48 from alex/patch-1

Don't try to compile the extension against PyPy.
  • Loading branch information...
2 parents ab77961 + c96a417 commit d5aab55d833073056a8b249d6d4c1aae4f6cbfb5 @mitsuhiko mitsuhiko committed Jan 11, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 setup.py
View
3 setup.py
@@ -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 d5aab55

Please sign in to comment.