Use requirements file for pip/setuptools/wheels in venv setup.

Fixes: #5158.
This commit is contained in:
Aditya Bansal 2017-06-19 14:57:21 +05:30 committed by Steve Howell
parent 7980462010
commit cf503017d2
2 changed files with 6 additions and 2 deletions

4
requirements/pip.txt Normal file
View File

@ -0,0 +1,4 @@
# Dependancies for setting up pip to install our requirements.txt file.
setuptools==36.0.1
pip==9.0.1
wheel==0.29.0

View File

@ -37,8 +37,8 @@ VENV_DEPENDENCIES = [
def install_venv_deps(requirements_file):
# type: (str) -> None
run(["pip", "install", "-U", "setuptools==36.0.1"])
run(["pip", "install", "--upgrade", "pip", "wheel"])
pip_requirements = os.path.join(ZULIP_PATH, "requirements", "pip.txt")
run(["pip", "install", "-U", "--requirement", pip_requirements])
run(["pip", "install", "--no-deps", "--requirement", requirements_file])
def get_index_filename(venv_path):