From a33c00f936e58160577dff201b73faab1e5c45a3 Mon Sep 17 00:00:00 2001 From: Nate Prewitt Date: Wed, 26 Apr 2017 07:18:28 -0600 Subject: [PATCH] fix pip output parsing issue for Windows --- pipenv/cli.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pipenv/cli.py b/pipenv/cli.py index 37ce4d94..7a523a97 100644 --- a/pipenv/cli.py +++ b/pipenv/cli.py @@ -346,6 +346,11 @@ def parse_install_output(output): fname = r['file'].split(os.sep)[-1] + # Pip output for "Saved" on Windows has a "./" appended at the + # front which doesn't match the os.sep ("\") for the system. + if fname.startswith('./'): + fname = fname[2:] + # Unencode percent-encoded values like ``!`` in version number. fname = requests.compat.unquote(fname)