With build isolation, we shouldn't check if wheel is installed to decide if we build wheels

This commit is contained in:
Paul Moore 2018-08-27 15:07:06 +01:00 committed by Benoit Pierre
parent 4de2915113
commit b9e92a70fd
1 changed files with 2 additions and 8 deletions

View File

@ -30,11 +30,6 @@ from pip._internal.utils.misc import (
from pip._internal.utils.temp_dir import TempDirectory
from pip._internal.wheel import WheelBuilder
try:
import wheel
except ImportError:
wheel = None
logger = logging.getLogger(__name__)
@ -321,9 +316,8 @@ class InstallCommand(RequirementCommand):
modifying_pip=requirement_set.has_requirement("pip")
)
# If caching is disabled or wheel is not installed don't
# try to build wheels.
if wheel and options.cache_dir:
# If caching is disabled don't try to build wheels.
if options.cache_dir:
# build wheels before install.
wb = WheelBuilder(
finder, preparer, wheel_cache,