Provide a good message for error described in issue #2846

This commit is contained in:
jr7square
2018-10-04 20:40:45 -04:00
committed by Dan Ryan
parent 0f53ef915b
commit e8231dc756
+3
View File
@@ -1775,6 +1775,9 @@ def do_install(
# Don't search for requirements.txt files if the user provides one
if requirements or package_args or project.pipfile_exists:
skip_requirements = True
# Don't attempt to install develop and default packages if Pipfile is missing
if not project.pipfile_exists and not packages and dev:
click.echo("Could not find Pipfile.", err=True)
concurrent = not sequential
# Ensure that virtualenv is available.
ensure_project(