Upgrade setuptools prior to updating mock

This commit is contained in:
ukhan
2016-08-12 13:54:28 -07:00
committed by Tim Abbott
parent fba7a9ca21
commit 180b438c44
2 changed files with 7 additions and 0 deletions

View File

@@ -92,6 +92,7 @@ def do_setup_virtualenv(venv_path, requirements_file, virtualenv_args):
activate_this = os.path.join(venv_path, "bin", "activate_this.py")
exec(open(activate_this).read(), {}, dict(__file__=activate_this)) # type: ignore # https://github.com/python/mypy/issues/1577
run(["pip", "install", "-U", "setuptools"]),
run(["pip", "install", "--upgrade", "pip", "wheel"])
run(["pip", "install", "--no-deps", "--requirement", requirements_file])
run(["sudo", "chmod", "-R", "a+rX", venv_path])