Skip to content

Commit

Permalink
setup_venv: Pin a version of setuptools for creating venvs.
Browse files Browse the repository at this point in the history
This works around a bad recent setuptools release:

pypa/setuptools#1042
  • Loading branch information
timabbott authored and Vaida committed Jun 2, 2017
1 parent 27e22de commit fea0e28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/lib/setup_venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,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))

run(["pip", "install", "-U", "setuptools"])
run(["pip", "install", "-U", "setuptools==35.0.2"])
run(["pip", "install", "--upgrade", "pip", "wheel"])
run(["pip", "install", "--no-deps", "--requirement", requirements_file])
run(["sudo", "chmod", "-R", "a+rX", venv_path])

0 comments on commit fea0e28

Please sign in to comment.