You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by lf...@apache.org on 2021/02/01 15:58:50 UTC

[incubator-datalab] branch DATALAB-2091 updated: [DATALAB-2091]: fixed venv_command

This is an automated email from the ASF dual-hosted git repository.

lfrolov pushed a commit to branch DATALAB-2091
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/DATALAB-2091 by this push:
     new e11e655  [DATALAB-2091]: fixed venv_command
e11e655 is described below

commit e11e6552e5266cc1019d64429fd23e07568c7dd4
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Mon Feb 1 17:58:37 2021 +0200

    [DATALAB-2091]: fixed venv_command
---
 infrastructure-provisioning/src/general/lib/gcp/actions_lib.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py b/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py
index 16426f5..f217820 100644
--- a/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py
+++ b/infrastructure-provisioning/src/general/lib/gcp/actions_lib.py
@@ -1308,7 +1308,7 @@ class GCPActions:
                 with lcd('/tmp/'):
                     local('sudo rm -rf Python-{}/'.format(python_version))
                 local('sudo -i virtualenv /opt/python/python{}'.format(python_version))
-                venv_command = '/bin/bash /opt/python/python{}/bin/activate'.format(python_version)
+                venv_command = 'source /opt/python/python{}/bin/activate'.format(python_version)
                 pip_command = '/opt/python/python{0}/bin/pip{1}'.format(python_version, python_version[:3])
                 local('{0} && sudo -i {1} install -U pip==9.0.3'.format(venv_command, pip_command))
                 local('{0} && sudo -i {1} install pyzmq==17.0.0'.format(venv_command, pip_command))


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org