equal
deleted
inserted
replaced
30 |
30 |
31 def create_virtualenv(): |
31 def create_virtualenv(): |
32 with lcd(get_version_path()): |
32 with lcd(get_version_path()): |
33 tmpd = run('mktemp -d').strip() |
33 tmpd = run('mktemp -d').strip() |
34 put('virtualenv/*.txt', tmpd) |
34 put('virtualenv/*.txt', tmpd) |
35 run('virtualenv -p /usr/bin/python3 %s' % env.srv_venv_path) |
35 run('/usr/bin/python3 -m venv %s' % env.srv_venv_path) |
36 with prefix('source %s/bin/activate' % env.srv_venv_path): |
36 with prefix('source %s/bin/activate' % env.srv_venv_path): |
37 run('pip install -r %s/requirements.txt' % tmpd) |
37 run('pip3 install -r %s/requirements.txt' % tmpd) |
38 run('pip install -r %s/requirements_srvr.txt' % tmpd) |
38 run('pip3 install -r %s/requirements_srvr.txt' % tmpd) |
39 run('rm -fr %s' % tmpd) |
39 run('rm -fr %s' % tmpd) |
40 |
40 |
41 |
41 |
42 def deploy(): |
42 def deploy(): |
43 # figure out the release name and version |
43 # figure out the release name and version |