comparison setup.py @ 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 480cf1be291a
children
comparison
equal deleted inserted replaced
1020:6c1d10d2fc52 1021:323d592690da
63 print('*' * 70) 63 print('*' * 70)
64 print(exc) 64 print(exc)
65 65
66 66
67 if Feature: 67 if Feature:
68 # Optional C extension module for speeding up Genshi:
69 # Not activated by default on:
70 # - PyPy (where it harms performance)
71 # - CPython >= 3.3 (the new Unicode C API is not supported yet)
68 speedups = Feature( 72 speedups = Feature(
69 "optional C speed-enhancements", 73 "optional C speed-enhancements",
70 standard = not is_pypy, 74 standard = not is_pypy and sys.version_info < (3, 3),
71 ext_modules = [ 75 ext_modules = [
72 Extension('genshi._speedups', ['genshi/_speedups.c']), 76 Extension('genshi._speedups', ['genshi/_speedups.c']),
73 ], 77 ],
74 ) 78 )
75 else: 79 else:
Copyright (C) 2012-2017 Edgewall Software