This is an automated email from the ASF dual-hosted git repository.
omartushevskyi pushed a commit to branch v2.1-RC2
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
The following commit(s) were added to refs/heads/v2.1-RC2 by this push:
new 3c6d952 [DLAB-532] Fixed matplotlib downloading bug
new 86a3695 Merge pull request #42 from Dyoma33/DLAB-532
3c6d952 is described below
commit 3c6d9522906feffbd82b33c9c68ef3bdd60010c2
Author: Dyoma33 <[email protected]>
AuthorDate: Fri Mar 15 16:30:34 2019 +0200
[DLAB-532] Fixed matplotlib downloading bug
---
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 e091ffe..3f3aa31 100644
--- a/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
+++ b/infrastructure-provisioning/src/general/lib/os/debian/notebook_lib.py
@@ -150,6 +150,8 @@ def install_rstudio(os_user, local_spark_path,
rstudio_pass, rstudio_version):
def ensure_matplot(os_user):
if not exists('/home/' + os_user + '/.ensure_dir/matplot_ensured'):
try:
+ sudo("sudo sed -i~orig -e 's/# deb-src/deb-src/'
/etc/apt/sources.list")
+ sudo('sudo apt-get update')
sudo('apt-get build-dep -y python-matplotlib')
sudo('pip2 install matplotlib==2.0.2 --no-cache-dir')
sudo('pip3 install matplotlib==2.0.2 --no-cache-dir')
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]