diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2012-08-23 21:45:38 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2012-08-23 21:45:38 +0200 |
commit | 808f7db8125d9a6c83241dabd8c42b328e83d05c (patch) | |
tree | 5c79b192af5c6bf6aa0733aec821e069d5fa118f /setupinfo.py | |
parent | f9ad4cf7844b1c69827514bff18eb153b569c82f (diff) | |
download | python-lxml-808f7db8125d9a6c83241dabd8c42b328e83d05c.tar.gz |
let Cython generate complete module cleanup code
Diffstat (limited to 'setupinfo.py')
-rw-r--r-- | setupinfo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setupinfo.py b/setupinfo.py index e0bab617..cd8a0511 100644 --- a/setupinfo.py +++ b/setupinfo.py @@ -60,9 +60,9 @@ def ext_modules(static_include_dirs, static_library_dirs, source_extension = ".pyx" print("Building with Cython %s." % Cython.Compiler.Version.version) - # generate module cleanup code for globals, but not for etree types imported in objectify + # generate module cleanup code from Cython.Compiler import Options - Options.generate_cleanup_code = 2 + Options.generate_cleanup_code = 3 else: source_extension = ".c" if not os.path.exists(PACKAGE_PATH + 'lxml.etree.c'): |