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/06/17 19:30:21 UTC
[incubator-dlab] 02/02: [DLAB-1855]: changed pip2 installation
This is an automated email from the ASF dual-hosted git repository.
lfrolov pushed a commit to branch DLAB-1855
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit c881a6789ef9f2151edde701ad4eae44fab4e517
Author: leonidfrolov <fr...@gmail.com>
AuthorDate: Wed Jun 17 22:29:39 2020 +0300
[DLAB-1855]: changed pip2 installation
---
infrastructure-provisioning/src/general/lib/os/fab.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/infrastructure-provisioning/src/general/lib/os/fab.py b/infrastructure-provisioning/src/general/lib/os/fab.py
index 7d2f396..1e68e3f 100644
--- a/infrastructure-provisioning/src/general/lib/os/fab.py
+++ b/infrastructure-provisioning/src/general/lib/os/fab.py
@@ -645,8 +645,10 @@ def configure_data_engine_service_pip(hostname, os_user, keyfile):
env.key_filename = [keyfile]
env.host_string = os_user + '@' + hostname
if not exists('/usr/bin/pip2'):
- manage_pkg('-y install', 'remote', 'python2-pip')
- #sudo('ln -s /usr/bin/pip-2.7 /usr/bin/pip2')
+ if not exists('/usr/bin/pip-2.7'):
+ manage_pkg('-y install', 'remote', 'python2-pip')
+ else:
+ sudo('ln -s /usr/bin/pip-2.7 /usr/bin/pip2')
if not exists('/usr/bin/pip3') and sudo("python3.4 -V 2>/dev/null | awk '{print $2}'"):
manage_pkg('-y install', 'remote', 'python3-pip')
sudo('ln -s /usr/bin/pip-3.4 /usr/bin/pip3')
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org