Auto merge of #8394 - frewsxcv:virtualenv-spaces, r=Manishearth

Make virtualenv more tolerant of spaces in directory names

Fixes #8390

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8394)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-11-08 03:55:54 +05:30
commit abf2dfea05

View file

@ -9,6 +9,7 @@ import platform
import subprocess
import sys
from distutils.spawn import find_executable
from pipes import quote
SEARCH_PATHS = [
os.path.join("python", "mach"),
@ -102,7 +103,7 @@ def _activate_virtualenv(topdir):
except (subprocess.CalledProcessError, OSError):
sys.exit("Python virtualenv failed to execute properly.")
execfile(activate_path, dict(__file__=activate_path))
execfile(activate_path, dict(__file__=quote(activate_path)))
# TODO: Right now, we iteratively install all the requirements by invoking
# `pip install` each time. If it were the case that there were conflicting