mirror of
https://github.com/zulip/zulip.git
synced 2025-11-16 03:41:58 +00:00
tools: Create DEPLOY_ROOT/zulip-py3-venv symlink in development too.
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
This commit is contained in:
committed by
Tim Abbott
parent
70bfcd3402
commit
8fdb62a6bc
@@ -8,7 +8,7 @@ if ZULIP_PATH not in sys.path:
|
|||||||
sys.path.append(ZULIP_PATH)
|
sys.path.append(ZULIP_PATH)
|
||||||
|
|
||||||
from scripts.lib.setup_venv import setup_virtualenv
|
from scripts.lib.setup_venv import setup_virtualenv
|
||||||
from scripts.lib.zulip_tools import subprocess_text_output
|
from scripts.lib.zulip_tools import overwrite_symlink, subprocess_text_output
|
||||||
|
|
||||||
VENV_PATH = "/srv/zulip-py3-venv"
|
VENV_PATH = "/srv/zulip-py3-venv"
|
||||||
|
|
||||||
@@ -22,8 +22,10 @@ def main() -> None:
|
|||||||
python_interpreter = subprocess_text_output(['which', 'python3'])
|
python_interpreter = subprocess_text_output(['which', 'python3'])
|
||||||
setup_virtualenv("/srv/zulip-thumbor-venv", THUMBOR_REQS_FILE,
|
setup_virtualenv("/srv/zulip-thumbor-venv", THUMBOR_REQS_FILE,
|
||||||
patch_activate_script=True, virtualenv_args=['-p', 'python2.7'])
|
patch_activate_script=True, virtualenv_args=['-p', 'python2.7'])
|
||||||
setup_virtualenv(VENV_PATH, DEV_REQS_FILE, patch_activate_script=True,
|
cached_venv_path = setup_virtualenv(
|
||||||
virtualenv_args=['-p', python_interpreter])
|
VENV_PATH, DEV_REQS_FILE, patch_activate_script=True,
|
||||||
|
virtualenv_args=['-p', python_interpreter])
|
||||||
|
overwrite_symlink(cached_venv_path, os.path.join(ZULIP_PATH, "zulip-py3-venv"))
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|||||||
@@ -11,4 +11,4 @@ LATEST_RELEASE_ANNOUNCEMENT = "https://blog.zulip.org/2018/11/07/zulip-1-9-relea
|
|||||||
# Typically, adding a dependency only requires a minor version bump, and
|
# Typically, adding a dependency only requires a minor version bump, and
|
||||||
# removing a dependency requires a major version bump.
|
# removing a dependency requires a major version bump.
|
||||||
|
|
||||||
PROVISION_VERSION = '28.0'
|
PROVISION_VERSION = '28.1'
|
||||||
|
|||||||
Reference in New Issue
Block a user