From c9ac9431f0d4500cd2bf2e64b50a863628208a50 Mon Sep 17 00:00:00 2001 From: Erin O'Connell Date: Thu, 14 Sep 2017 02:34:34 -0600 Subject: [PATCH] changed scope of original_sys_info --- pipenv/utils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pipenv/utils.py b/pipenv/utils.py index f8f45236..b3dde29c 100644 --- a/pipenv/utils.py +++ b/pipenv/utils.py @@ -45,16 +45,17 @@ def resolve_deps(deps, sources=None, verbose=False, python=False): """Given a list of dependencies, return a resolved list of dependencies, using pip-tools -- and their hashes, using the warehouse API / pip. """ - # If a version of python is required... + original_sys_info = sys.version_info if python: - original_sys_info = sys.version_info sys.version_info = namedtuple('fake_version_info', ['major', 'minor', 'micro', 'releaselevel', 'serial']) python = python.split('.') # Hack sys.version_info to contain our information instead... sys.version_info = sys.version_info(int(python[0]), int(python[1]), int(python[2]), 'final', 0) + else: + import pip