From 83e1ba9a2d816758ccb6a5682693eecf85eacfef Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Wed, 6 Jun 2018 01:35:19 -0400 Subject: [PATCH] Don't search for requirements.txt if using pipfile - Also don't search for requirements.txt if taking in a package name - Fixes #2222 Signed-off-by: Dan Ryan --- pipenv/core.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pipenv/core.py b/pipenv/core.py index 504ce47e0d..da39de5e46 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -1779,7 +1779,8 @@ def do_install( keep_outdated = True more_packages = more_packages or [] # Don't search for requirements.txt files if the user provides one - skip_requirements = True if requirements else False + if requirements or package_name or project.pipfile_exists: + skip_requirements = True concurrent = (not sequential) # Ensure that virtualenv is available. ensure_project(