From 28fe84944c11bdfa96c3b781c27f44c54bcd72d9 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 9 Dec 2014 22:01:19 +0100 Subject: [PATCH] init_venv: Pass --no-clean to pip on Windows. Windows likes to fail deleting files for no reason, so we avoid deleting stuff to avoid bogus build failures... --- scripts/init_venv.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/init_venv.py b/scripts/init_venv.py index b14ab8ace..009fa86ab 100644 --- a/scripts/init_venv.py +++ b/scripts/init_venv.py @@ -81,7 +81,10 @@ def install_dev_packages(): """Install the packages needed for development.""" for pkg in get_dev_packages(): utils.print_subtitle("Installing {}".format(pkg)) - venv_python('-m', 'pip', 'install', pkg) + if os.name == 'nt': + venv_python('-m', 'pip', 'install', '--no-clean', pkg) + else: + venv_python('-m', 'pip', 'install', pkg) def venv_python(*args, output=False):