opnsense-ports/textproc/py-genshi/files/patch-setup.py
Franco Fichtner 52678669aa */*: sync with upstream
Taken from: HardenedBSD
2017-12-25 09:20:12 +01:00

17 lines
581 B
Python

--- setup.py.orig 2013-01-27 15:48:03 UTC
+++ setup.py
@@ -65,9 +65,13 @@ available.""")
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']),
],