Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Don't try to compile the extension against PyPy. #48

Merged
merged 1 commit into from

2 participants

@alex

No description provided.

@mitsuhiko mitsuhiko merged commit d5aab55 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 11, 2012
  1. @alex
This page is out of date. Refresh to see the latest.
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'])])
Something went wrong with that request. Please try again.