2016-07-21 01:56:50 +02:00
|
|
|
#!/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
|
|
|
|
|
|
|
|
def main():
|
|
|
|
# type: () -> None
|
|
|
|
PY2_DEV_REQS_FILE = os.path.join(ZULIP_PATH, "requirements", "py2_dev.txt")
|
2016-07-20 21:42:33 +02:00
|
|
|
setup_virtualenv("/srv/zulip-venv", PY2_DEV_REQS_FILE, patch_activate_script=True)
|
2016-07-21 01:56:50 +02:00
|
|
|
|
|
|
|
PY3_DEV_REQS_FILE = os.path.join(ZULIP_PATH, "requirements", "py3_dev.txt")
|
2016-07-20 21:42:33 +02:00
|
|
|
setup_virtualenv("/srv/zulip-py3-venv", PY3_DEV_REQS_FILE, patch_activate_script=True,
|
|
|
|
virtualenv_args=['-p', 'python3'])
|
2016-07-21 01:56:50 +02:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
main()
|