From 5061f7bdde6495848f96a3823f3c5be8b3b7b500 Mon Sep 17 00:00:00 2001 From: Eric Soroos Date: Tue, 20 Jan 2015 15:00:58 -0800 Subject: [PATCH] Turn off zip-safe flag for debug builds --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 90687d51f..7262db39e 100644 --- a/setup.py +++ b/setup.py @@ -722,6 +722,9 @@ class pil_build_ext(build_ext): os.unlink(tmpfile) +def debug_build(): + return hasattr(sys, 'gettotalrefcount') + setup( name=NAME, version=PILLOW_VERSION, @@ -754,6 +757,6 @@ setup( test_suite='PIL.tests', keywords=["Imaging", ], license='Standard PIL License', - zip_safe=True, + zip_safe= not debug_build(), ) # End of file