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/02/14 16:47:00 UTC

[incubator-datalab] branch 2.5.1-tcpc-deployment updated: [DATALAB-2698]: added python3-opencv to packages installed by default

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

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


The following commit(s) were added to refs/heads/2.5.1-tcpc-deployment by this push:
     new 7a51985  [DATALAB-2698]: added python3-opencv to packages installed by default
7a51985 is described below

commit 7a51985dfc2f8d10c2b165d95b17a2a66ef4fea5
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Mon Feb 14 18:46:52 2022 +0200

    [DATALAB-2698]: added python3-opencv to packages installed by default
---
 .../src/general/lib/os/debian/common_lib.py                        | 7 +++----
 .../src/general/lib/os/debian/notebook_lib.py                      | 1 +
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py b/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
index dc4920c..578fe37 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/common_lib.py
@@ -223,10 +223,9 @@ def manage_pkg(command, environment, requisites):
         sys.exit(1)
 
 
-def ensure_pkg(os_user, requisites='linux-headers-$(uname -r) python3-pip python3-dev python3-virtualenv '
-                                'groff gcc vim less git wget '
-                                'libssl-dev unattended-upgrades nmap '
-                                'libffi-dev unzip libxml2-dev haveged'):
+def ensure_pkg(os_user, requisites='linux-headers-$(uname -r) python3-pip python3-opencv python3-dev '
+                                   'python3-virtualenv groff gcc vim less git wget libssl-dev unattended-upgrades '
+                                   'nmap libffi-dev unzip libxml2-dev haveged'):
     try:
         if not exists(datalab.fab.conn,'/home/{}/.ensure_dir/pkg_upgraded'.format(os_user)):
             count = 0
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 3e95f62..1e5c13b 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
@@ -400,6 +400,7 @@ def ensure_venv_libs(os_user, libs):
         datalab.fab.conn.install_venv_pip_pkg(libs)
         datalab.fab.conn.sudo('touch /home/' + os_user + '/.ensure_dir/venv_libs_ensured')
 
+
 def ensure_pytorch(os_user, gpu=True):
     if not exists(datalab.fab.conn, '/home/' + os_user + '/.ensure_dir/pytorch_ensured'):
         if gpu:

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