This is an automated email from the ASF dual-hosted git repository. lfrolov pushed a commit to branch DATALAB-2698 in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git
commit a5d089e8a6e62a0c52c4b2168de46aec35902348 Author: leonidfrolov <[email protected]> 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 648701f..27ce444 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 e015d5b..3052753 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: [email protected] For additional commands, e-mail: [email protected]
