[issue39846] Register .whl as a unpack format in shutil unpack

2021-10-25 Thread John Andersen
John Andersen added the comment: I ran into this today. Using a wrapper function around _make_zipfile due to https://github.com/python/cpython/blob/d5650a1738fe34f6e1db4af5f4c4edb7cae90a36/Lib/shutil.py#L817-L819 where there is a check for if the format is zip then don't pass owner and group

[issue39846] Register .whl as a unpack format in shutil unpack

2021-06-30 Thread Dominic Davis-Foster
Dominic Davis-Foster added the comment: I have run into this myself and was surprised unpack_archive didn't support wheels. I would like to see support added, and don't mind doing the work myself. That said, I can see there being an issue with the number of supported zip-based formats balloo

[issue39846] Register .whl as a unpack format in shutil unpack

2020-03-04 Thread Daniel Chimeno
New submission from Daniel Chimeno : 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/