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 2022/06/06 13:26:19 UTC

[incubator-datalab] branch develop updated: [DATALAB-2837]: changed permission for python env

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

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


The following commit(s) were added to refs/heads/develop by this push:
     new f24c62726 [DATALAB-2837]: changed permission for python env
     new 604117ede Merge pull request #1543 from a1expol/develop
f24c62726 is described below

commit f24c62726f8e6c51cbbc5bb66e34a64718366718
Author: Oleksandr Polishchuk2 <ol...@epam.com>
AuthorDate: Mon Jun 6 16:20:21 2022 +0300

    [DATALAB-2837]: changed permission for python env
---
 infrastructure-provisioning/src/general/lib/os/fab.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py
index d9259b03a..33f1ef2ae 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -366,6 +366,7 @@ def ensure_python_venv(python_venv_version):
             conn.sudo('''bash -l -c 'cd /tmp/Python-{0} && make altinstall' '''.format(python_venv_version))
             conn.sudo('''bash -l -c 'cd /tmp && rm -rf Python-{}' '''.format(python_venv_version))
             conn.sudo('''bash -l -c 'virtualenv /opt/python/python{0}' '''.format(python_venv_version))
+            conn.sudo('chown -R datalab-user:datalab-user /opt/python/')
             venv_command = 'source /opt/python/python{}/bin/activate'.format(python_venv_version)
             pip_command = '/opt/python/python{0}/bin/pip{1}'.format(python_venv_version, python_venv_version[:3])
             conn.sudo('''bash -l -c '{0} && {1} install -UI pip=={2}' '''.format(venv_command, pip_command,


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