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:
parent
35a52c1397
commit
135f2ac0ef
1 changed files with 4 additions and 8 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue