mirror of https://github.com/pypa/pip
Use unpack_file instead of unpack_file_url in wheel
This commit is contained in:
parent
59b0a79bde
commit
ee8cc0e648
|
@ -27,7 +27,6 @@ from pip._internal.utils.logging import indent_log
|
|||
from pip._internal.utils.marker_files import write_delete_marker_file
|
||||
from pip._internal.utils.misc import display_path, normalize_path
|
||||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
from pip._internal.utils.urls import url_to_path
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import Optional
|
||||
|
|
|
@ -28,7 +28,6 @@ from pip._vendor.packaging.utils import canonicalize_name
|
|||
from pip._vendor.six import StringIO
|
||||
|
||||
from pip._internal import pep425tags
|
||||
from pip._internal.download import unpack_file_url
|
||||
from pip._internal.exceptions import (
|
||||
InstallationError,
|
||||
InvalidWheelFilename,
|
||||
|
@ -51,6 +50,7 @@ from pip._internal.utils.setuptools_build import make_setuptools_shim_args
|
|||
from pip._internal.utils.temp_dir import TempDirectory
|
||||
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
|
||||
from pip._internal.utils.ui import open_spinner
|
||||
from pip._internal.utils.unpacking import unpack_file
|
||||
|
||||
if MYPY_CHECK_RUNNING:
|
||||
from typing import (
|
||||
|
@ -1153,7 +1153,7 @@ class WheelBuilder(object):
|
|||
req.link = Link(path_to_url(wheel_file))
|
||||
assert req.link.is_wheel
|
||||
# extract the wheel into the dir
|
||||
unpack_file_url(link=req.link, location=req.source_dir)
|
||||
unpack_file(req.link.file_path, req.source_dir)
|
||||
else:
|
||||
build_failure.append(req)
|
||||
|
||||
|
|
Loading…
Reference in New Issue