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/05/12 15:30:49 UTC
[incubator-datalab] 01/01: [DATALAB-2793]: removed broken cuda repo from azure deeplearning
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DATALAB-2793
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit c4fa92fcfbd3a1df90c1906d2156b3b9cfce4736
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Thu May 12 18:30:33 2022 +0300
[DATALAB-2793]: removed broken cuda repo from azure deeplearning
---
infrastructure-provisioning/src/general/lib/os/fab.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py
index b4f93a218..d9259b03a 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -311,6 +311,9 @@ def configure_nftables(config):
def ensure_python_venv_deeplearn(python_venv_version):
try:
if not exists(conn, '/opt/python/python{}'.format(python_venv_version)):
+ if os.environ['conf_cloud_provider'] == 'azure':
+ conn.sudo('rm /etc/apt/sources.list.d/cuda*')
+ conn.sudo('apt update')
conn.sudo('add-apt-repository ppa:deadsnakes/ppa -y')
conn.sudo('apt install python{0} -y'.format(python_venv_version[:3]))
conn.sudo('apt install virtualenv')
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org