# HG changeset patch # User hodgestar # Date 1326277427 0 # Node ID 353ecf97bf61e4e064b59ace40cc83c51e3d50f8 # Parent 7f8b4df4f862b9ba2eee8aaf5d912fc682c23f80 Make --with-speedups the default for Pythons other than PyPy. diff --git a/setup.py b/setup.py --- 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']), ],