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

In Resolver, assume wheel_download_dir exists

This is ensured at the beginning of the wheel
command, which is the only command that
sets wheel_download_dir.

This is also similar to what is done for download_dir
in the download command.
This commit is contained in:
Stéphane Bidoul (ACSONE) 2019-12-29 13:54:14 +01:00
parent d8374b86f9
commit 9da9f6050b
No known key found for this signature in database
GPG key ID: BCAB2555446B5B92

View file

@ -29,11 +29,7 @@ from pip._internal.exceptions import (
UnsupportedPythonVersion,
)
from pip._internal.utils.logging import indent_log
from pip._internal.utils.misc import (
dist_in_usersite,
ensure_dir,
normalize_version_info,
)
from pip._internal.utils.misc import dist_in_usersite, normalize_version_info
from pip._internal.utils.packaging import (
check_requires_python,
get_requires_python,
@ -163,10 +159,6 @@ class Resolver(object):
possible to move the preparation to become a step separated from
dependency resolution.
"""
# make the wheelhouse
if self.preparer.wheel_download_dir:
ensure_dir(self.preparer.wheel_download_dir)
# If any top-level requirement has a hash specified, enter
# hash-checking mode, which requires hashes from all.
root_reqs = (