mirror of https://github.com/zulip/zulip.git
Revert "Factor out venv-installation into a script."
This reverts commit 852c49a44e
.
I think this may have broken provisioning without a venv.
This commit is contained in:
parent
f664d00fe8
commit
a07eca2639
|
@ -178,7 +178,10 @@ def main():
|
|||
DEV_REQS_FILE = os.path.join(ZULIP_PATH, "requirements", "py3_dev.txt")
|
||||
setup_virtualenv(VENV_PATH, DEV_REQS_FILE, virtualenv_args=['-p', 'python3'])
|
||||
else:
|
||||
run(["tools/setup/setup-venvs"])
|
||||
DEV_REQS_FILE = os.path.join(ZULIP_PATH, "requirements", "py2_dev.txt")
|
||||
setup_virtualenv(PY2_VENV_PATH, DEV_REQS_FILE)
|
||||
DEV_REQS_FILE = os.path.join(ZULIP_PATH, "requirements", "py3_dev.txt")
|
||||
setup_virtualenv(PY3_VENV_PATH, DEV_REQS_FILE, virtualenv_args=['-p', 'python3'])
|
||||
|
||||
# Put Python2 virtualenv activation in our .bash_profile.
|
||||
with open(os.path.expanduser('~/.bash_profile'), 'w+') as bash_profile:
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
#!/usr/bin/env python
|
||||
|
||||
import os
|
||||
import sys
|
||||
from os.path import dirname, abspath
|
||||
|
||||
ZULIP_PATH = dirname(dirname(dirname(abspath(__file__))))
|
||||
if ZULIP_PATH not in sys.path:
|
||||
sys.path.append(ZULIP_PATH)
|
||||
|
||||
from scripts.lib.setup_venv import setup_virtualenv
|
||||
|
||||
PY2_DEV_REQS_FILE = os.path.join(ZULIP_PATH, "requirements", "py2_dev.txt")
|
||||
setup_virtualenv("/srv/zulip-venv", PY2_DEV_REQS_FILE)
|
||||
|
||||
PY3_DEV_REQS_FILE = os.path.join(ZULIP_PATH, "requirements", "py3_dev.txt")
|
||||
setup_virtualenv("/srv/zulip-py3-venv", PY3_DEV_REQS_FILE, virtualenv_args=['-p', 'python3'])
|
Loading…
Reference in New Issue