diff options
author | scoder <none@none> | 2010-05-26 08:28:36 +0200 |
---|---|---|
committer | scoder <none@none> | 2010-05-26 08:28:36 +0200 |
commit | c618b600492e7ce40b71af9e56865c1c2e6e950f (patch) | |
tree | 5dd41029e1eb93dd8c4bc95e201c64b5d599a327 /setupinfo.py | |
parent | 0511d5268cfcb946592215605026ac62b4e9b557 (diff) | |
download | python-lxml-c618b600492e7ce40b71af9e56865c1c2e6e950f.tar.gz |
[svn r4415] r5593@lenny: sbehnel | 2010-05-21 19:08:35 +0200
let Cython generate cleanup code on module unload / runtime exit
--HG--
branch : trunk
Diffstat (limited to 'setupinfo.py')
-rw-r--r-- | setupinfo.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/setupinfo.py b/setupinfo.py index bff428cb..f7640ae7 100644 --- a/setupinfo.py +++ b/setupinfo.py @@ -58,6 +58,9 @@ def ext_modules(static_include_dirs, static_library_dirs, if CYTHON_INSTALLED: source_extension = ".pyx" print("Building with Cython %s." % Cython.Compiler.Version.version) + + from Cython.Compiler import Options + Options.generate_cleanup_code = 3 else: print ("NOTE: Trying to build without Cython, pre-generated " "'%slxml.etree.c' needs to be available." % PACKAGE_PATH) |