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

Move unpacking into unpack_url

This commit is contained in:
Chris Hunt 2020-02-04 21:41:49 -05:00
parent 35a52c1397
commit 135f2ac0ef

View file

@ -168,10 +168,6 @@ def unpack_http_url(
file = File(from_path, content_type)
# unpack the archive to the build dir location. even when only
# downloading archives, they have to be unpacked to parse dependencies
unpack_file(file.path, location, file.content_type)
return file
@ -249,10 +245,6 @@ def unpack_file_url(
file = File(from_path, content_type)
# unpack the archive to the build dir location. even when only downloading
# archives, they have to be unpacked to parse dependencies
unpack_file(file.path, location, file.content_type)
return file
@ -297,6 +289,10 @@ def unpack_url(
hashes=hashes,
)
# unpack the archive to the build dir location. even when only downloading
# archives, they have to be unpacked to parse dependencies
unpack_file(file.path, location, file.content_type)
return file