1
0
mirror of https://github.com/gryf/vmstrap.git synced 2026-01-25 08:45:50 +01:00

Rearrange pip installed packages. Added pdbpp

This commit is contained in:
2019-10-08 08:04:39 +02:00
parent 8f3a11f126
commit f3144bad5a

View File

@@ -1,4 +1,6 @@
#!/bin/bash -x #!/bin/bash
set -e
# 1. update # 1. update
sudo yum -y install epel-release sudo yum -y install epel-release
@@ -19,10 +21,17 @@ echo 'export EDITOR="vim"' | sudo tee -a /etc/profile.d/vim.sh
# 5. install tools from pypi # 5. install tools from pypi
if $(pip list |grep -e rainbow -e remote-pdb|wc -l|grep -qv 2); then sudo pip install -U pip setuptools
sudo pip install pip --upgrade installed_pkgs=$(pip list)
sudo pip install remote_pdb rainbow pkgs_to_install=
sudo pip install -U setuptools for pkg in remote_pdb pdbpp rainbow; do
if echo "${installed_pkgs}" | grep -qv "${pkg}"; then
pkgs_to_install="${pkgs_to_install} ${pkg}"
fi
done
if [ -n "${pkgs_to_install}" ]; then
sudo pip install ${pkgs_to_install}
fi fi
# 6. copy configuration for bash, git, tmux # 6. copy configuration for bash, git, tmux