mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-09 16:10:48 +03:00
Merge pull request #1081 from wiredfool/zipsafe
Turn off zip-safe flag for debug builds
This commit is contained in:
commit
adad71c759
5
setup.py
5
setup.py
|
@ -722,6 +722,9 @@ class pil_build_ext(build_ext):
|
||||||
os.unlink(tmpfile)
|
os.unlink(tmpfile)
|
||||||
|
|
||||||
|
|
||||||
|
def debug_build():
|
||||||
|
return hasattr(sys, 'gettotalrefcount')
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name=NAME,
|
name=NAME,
|
||||||
version=PILLOW_VERSION,
|
version=PILLOW_VERSION,
|
||||||
|
@ -754,6 +757,6 @@ setup(
|
||||||
test_suite='PIL.tests',
|
test_suite='PIL.tests',
|
||||||
keywords=["Imaging", ],
|
keywords=["Imaging", ],
|
||||||
license='Standard PIL License',
|
license='Standard PIL License',
|
||||||
zip_safe=True,
|
zip_safe= not debug_build(),
|
||||||
)
|
)
|
||||||
# End of file
|
# End of file
|
||||||
|
|
Loading…
Reference in New Issue
Block a user