# HG changeset patch # User hodgestar # Date 1392575541 0 # Node ID 323d592690dac9892ef74f42c94d5cc0aedb10a6 # Parent 6c1d10d2fc52b94407744c28a355949905c98fab Disable the speedups C extension on CPython >= 3.3 since Genshi doesn't support the new Unicode C API yet. diff --git a/setup.py b/setup.py --- a/setup.py +++ b/setup.py @@ -65,9 +65,13 @@ if Feature: + # Optional C extension module for speeding up Genshi: + # Not activated by default on: + # - PyPy (where it harms performance) + # - CPython >= 3.3 (the new Unicode C API is not supported yet) speedups = Feature( "optional C speed-enhancements", - standard = not is_pypy, + standard = not is_pypy and sys.version_info < (3, 3), ext_modules = [ Extension('genshi._speedups', ['genshi/_speedups.c']), ],