1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

correct wheel extension: '.whl'

This commit is contained in:
Marcus Smith 2013-06-27 23:10:36 -07:00
parent fae0c02b60
commit 6e32b21b04

View file

@ -591,7 +591,7 @@ def unpack_file(filename, location, content_type, link):
or filename.endswith('.pybundle')
or filename.endswith('.whl')
or zipfile.is_zipfile(filename)):
unzip_file(filename, location, flatten=not filename.endswith(('.pybundle', 'whl')))
unzip_file(filename, location, flatten=not filename.endswith(('.pybundle', '.whl')))
elif (content_type == 'application/x-gzip'
or tarfile.is_tarfile(filename)
or splitext(filename)[1].lower() in ('.tar', '.tar.gz', '.tar.bz2', '.tgz', '.tbz')):