changeset 954:353ecf97bf61 trunk

Make --with-speedups the default for Pythons other than PyPy.
author hodgestar
date Wed, 11 Jan 2012 10:23:47 +0000
parents 7f8b4df4f862
children bef1e8701e79
files setup.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py
+++ b/setup.py
@@ -35,6 +35,7 @@
 
 _speedup_available = False
 
+is_pypy = hasattr(sys, 'pypy_version_info')
 
 class optional_build_ext(build_ext):
     # This class allows C extension building to fail.
@@ -66,7 +67,7 @@
 if Feature:
     speedups = Feature(
         "optional C speed-enhancements",
-        standard = False,
+        standard = not is_pypy,
         ext_modules = [
             Extension('genshi._speedups', ['genshi/_speedups.c']),
         ],
Copyright (C) 2012-2017 Edgewall Software