1
0
mirror of https://github.com/gryf/vmstrap.git synced 2025-12-31 11:02:35 +01:00

Some more py2/p3 related stuff

This commit is contained in:
2020-02-19 13:31:36 +01:00
parent e91e2a1458
commit c6822c862a

View File

@@ -28,14 +28,12 @@ PGS="bash-completion
python2-jedi python2-jedi
python2-mccabe python2-mccabe
python2-pip python2-pip
python2-pylint
python3-devel python3-devel
python3-pip python3-pip
python34-apsw python34-apsw
python36-devel python36-devel
python36-jedi python36-jedi
python36-mccabe python36-mccabe
python36-pylint
rxvt-unicode-256color rxvt-unicode-256color
the_silver_searcher the_silver_searcher
tmux tmux
@@ -72,22 +70,18 @@ echo 'export EDITOR="vim"' | sudo tee -a /etc/profile.d/vim.sh
# 6. install tools from pypi (only py3, no more latest setuptools for py2) # 6. install tools from pypi (only py3, no more latest setuptools for py2)
sudo pip3 install -U pip setuptools sudo pip3 install -U pip setuptools
installed_pkgs=$(pip list) installed_pkgs=$(pip list)
pkgs_to_install= if echo "${installed_pkgs}" | grep -qv "rainbow"; then
for pkg in pdbpp rainbow; do sudo pip install rainbow
sudo pip3 install rainbow
fi
installed_pkgs=$(pip3 list)
for pkg in remote_pdb pdbpp; do
if echo "${installed_pkgs}" | grep -qv "${pkg}"; then if echo "${installed_pkgs}" | grep -qv "${pkg}"; then
pkgs_to_install="${pkgs_to_install} ${pkg}" sudo pip3 install ${pkg}
fi fi
done 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 # 7. copy configuration for bash, git, tmux
sudo cp .bash_prompt ~/ sudo cp .bash_prompt ~/
sudo cp .tmux.conf ~/ sudo cp .tmux.conf ~/