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:
parent
fae0c02b60
commit
6e32b21b04
|
@ -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')):
|
||||
|
|
Loading…
Reference in a new issue