From 84303cb2ea2a6335bfe9d92fc69de03a329c2836 Mon Sep 17 00:00:00 2001 From: gryf Date: Wed, 19 Feb 2020 10:10:20 +0100 Subject: [PATCH] Install python packages possibly for both py2 and py3 envs. --- bootstrap_centos7.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bootstrap_centos7.sh b/bootstrap_centos7.sh index 9c41504..26b7521 100755 --- a/bootstrap_centos7.sh +++ b/bootstrap_centos7.sh @@ -73,7 +73,7 @@ echo 'export EDITOR="vim"' | sudo tee -a /etc/profile.d/vim.sh sudo pip install -U pip setuptools installed_pkgs=$(pip list) pkgs_to_install= -for pkg in remote_pdb pdbpp rainbow; do +for pkg in pdbpp rainbow; do if echo "${installed_pkgs}" | grep -qv "${pkg}"; then pkgs_to_install="${pkgs_to_install} ${pkg}" fi @@ -81,6 +81,11 @@ done if [ -n "${pkgs_to_install}" ]; then sudo pip install ${pkgs_to_install} + sudo pip3 install ${pkgs_to_install} +fi + +if [ $(pip3 list |grep remote_pdb|wc -l) -eq 0 ]; then + sudo pip install remote_pdb fi # 7. copy configuration for bash, git, tmux