Isn’t zlib only required for compression? It is my impression that zipfile’s 
decompressor is pure Python,
and only depends on zlib if the archive is encrypted (but wheels are never 
encrypted).

zlib also does not provide decompression at its core; for that you need 
zlib/contrib/minizip, but I don’t
think CPython depends on minizip either.

zlib is technically optional, and not even required to installed wheels.


> On 05/9/2018, at 19:35, Donald Stufft <[email protected]> wrote:
> 
> 
> 
>> On Sep 4, 2018, at 6:06 AM, Alex Walters <[email protected] 
>> <mailto:[email protected]>> wrote:
>> 
>> Since zlib is a dependency of python, the assumption has to be that it is
>> already present.
> 
> 
> It is technically an optional dependency of Python, though I don’t think you 
> can install wheels without zlib present since wheels are zip files and 
> generally include compression. Although maybe it could work in niche 
> scenarios if someone built wheels using ZIP_STORED instead of ZIP_DEFLATE?
> --
> Distutils-SIG mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mm3/mailman3/lists/distutils-sig.python.org/
> Message archived at 
> https://mail.python.org/mm3/archives/list/[email protected]/message/FFB5XQBHX6N26FD5ZELMRIBRNOCNQ62Z/

--
Distutils-SIG mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mm3/mailman3/lists/distutils-sig.python.org/
Message archived at 
https://mail.python.org/mm3/archives/list/[email protected]/message/QA37CKADM7YOT6DZPY4IDBJ73L3ZLSXU/

Reply via email to