You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by lf...@apache.org on 2020/05/29 07:35:49 UTC

[incubator-dlab] 04/04: [DLAB-1810]: added fix for torch

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

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

commit 22c905dbcfd4071f33ade5e5205c82719004298a
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Fri May 29 10:35:22 2020 +0300

    [DLAB-1810]: added fix for torch
---
 infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
index e4e03d4..f36389c 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
@@ -498,6 +498,8 @@ def install_torch(os_user):
     if not exists('/home/{}/.ensure_dir/torch_ensured'.format(os_user)):
         run('git clone https://github.com/torch/distro.git ~/torch --recursive')
         with cd('/home/{}/torch/'.format(os_user)):
+            sudo("sed -i 's|sudo apt-get install -y python-software-properties|"
+                 "# sudo apt-get install -y python-software-properties|' /home/{}/torch/install-deps".format(os_user))
             run('bash install-deps;')
             run('./install.sh -b')
         run('source /home/{}/.bashrc'.format(os_user))


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