From 8991c0901f4bdc6c58b5ace68c9cdc106f95cd08 Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Wed, 25 Apr 2018 21:58:43 -0400 Subject: [PATCH] Shellquote paths to requirements files - Allows for windows paths with spaces in them - Fixes #2054 Signed-off-by: Dan Ryan --- HISTORY.txt | 1 + pipenv/core.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY.txt b/HISTORY.txt index abc03e3c..df018f32 100644 --- a/HISTORY.txt +++ b/HISTORY.txt @@ -10,6 +10,7 @@ - Remove GPL'ed code. - Make imports lazy to improve initial load time. - Extra path searching for python at runtime. + - Shellquote paths to requirement files in case of spaces on windows. - Require `--python` values to exist when passing a path. - Bugfix for environment variable expansion in 'unlocked' pipfiles. - Bugfix for `--deploy` flag. diff --git a/pipenv/core.py b/pipenv/core.py index 89108d56..8965668d 100644 --- a/pipenv/core.py +++ b/pipenv/core.py @@ -1476,7 +1476,7 @@ def pip_install( if package_name.startswith('-e '): install_reqs = ' -e "{0}"'.format(package_name.split('-e ')[1]) elif r: - install_reqs = ' -r {0}'.format(r) + install_reqs = ' -r {0}'.format(escape_grouped_arguments(r)) else: install_reqs = ' "{0}"'.format(package_name) # Skip hash-checking mode, when appropriate.