mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Merge pull request #2782 from rbtcollins/issue-2780
Issue #2780: Fix assertion installing with no cache.
This commit is contained in:
commit
416f9d0eff
1 changed files with 2 additions and 1 deletions
|
@ -272,7 +272,8 @@ class InstallCommand(RequirementCommand):
|
|||
return
|
||||
|
||||
try:
|
||||
if options.download_dir or not wheel:
|
||||
if (options.download_dir or not wheel or not
|
||||
options.cache_dir):
|
||||
# on -d don't do complex things like building
|
||||
# wheels, and don't try to build wheels when wheel is
|
||||
# not installed.
|
||||
|
|
Loading…
Reference in a new issue