mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
Use python2-specific requirements files.
This commit is contained in:
committed by
Tim Abbott
parent
146dc310a7
commit
0b714ea6c6
@@ -1105,7 +1105,7 @@ Once you have created and activated a virtualenv, do the following:
|
||||
|
||||
```
|
||||
pip install --upgrade pip # upgrade pip itself because older versions have known issues.
|
||||
pip install --no-deps -r requirements/dev.txt # install python packages required for development
|
||||
pip install --no-deps -r requirements/py2_dev.txt # install python packages required for development
|
||||
./tools/setup/install-phantomjs
|
||||
./tools/install-mypy
|
||||
./tools/setup/download-zxcvbn
|
||||
|
||||
@@ -19,5 +19,5 @@ args = parser.parse_args()
|
||||
# install dependencies for setting up the virtualenv
|
||||
run(["apt-get", "-y", "install"] + VENV_DEPENDENCIES)
|
||||
|
||||
cached_venv_path = setup_virtualenv(args.target, os.path.join(ZULIP_PATH, "requirements", "prod.txt"))
|
||||
cached_venv_path = setup_virtualenv(args.target, os.path.join(ZULIP_PATH, "requirements", "py2_prod.txt"))
|
||||
# Now the virtualenv has been activated
|
||||
|
||||
@@ -153,7 +153,7 @@ def main():
|
||||
setup_virtualenv(PY3_VENV_PATH,
|
||||
os.path.join(ZULIP_PATH, "requirements", "mypy.txt"),
|
||||
virtualenv_args=['-p', 'python3'])
|
||||
setup_virtualenv(VENV_PATH, os.path.join(ZULIP_PATH, "requirements", "dev.txt"))
|
||||
setup_virtualenv(VENV_PATH, os.path.join(ZULIP_PATH, "requirements", "py2_dev.txt"))
|
||||
|
||||
# Put Python2 virtualenv activation in our .bash_profile.
|
||||
with open(os.path.expanduser('~/.bash_profile'), 'w+') as bash_profile:
|
||||
|
||||
Reference in New Issue
Block a user