[New-bugs-announce] [issue39846] Register .whl as a unpack format in shutil unpack

Daniel Chimeno report at bugs.python.org
Wed Mar 4 05:24:15 EST 2020


New submission from Daniel Chimeno <daniel at chimeno.me>:

While working on project with Python wheels I found myself adding:

````
import shutil
shutil.register_unpack_format('whl', ['.whl'], shutil._unpack_zipfile)

````

Since PEP 427 explicitly says wheels are ZIP-format archive. https://www.python.org/dev/peps/pep-0427/

I wonder if it's loable to register the unpack format by default so the 
shutil.unpack_archive() function works without adding it.

----------
components: Library (Lib)
messages: 363341
nosy: dchimeno
priority: normal
severity: normal
status: open
title: Register .whl as a unpack format in shutil unpack
type: enhancement
versions: Python 3.8, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39846>
_______________________________________


More information about the New-bugs-announce mailing list