Mercurial > genshi > mirror
changeset 1021:323d592690da trunk
Disable the speedups C extension on CPython >= 3.3 since Genshi doesn't support the new Unicode C API yet.
author | hodgestar |
---|---|
date | Sun, 16 Feb 2014 18:32:21 +0000 |
parents | 6c1d10d2fc52 |
children | 500573200533 |
files | setup.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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']), ],