mirror of
https://github.com/gryf/vmstrap.git
synced 2025-12-19 12:28:21 +01:00
Fixes for centos/fedora
This commit is contained in:
12
bootstrap.sh
12
bootstrap.sh
@@ -44,7 +44,6 @@ COMMON_RPM=(bash-completion
|
|||||||
make
|
make
|
||||||
python3-devel
|
python3-devel
|
||||||
python3-pip
|
python3-pip
|
||||||
rxvt-unicode-256color
|
|
||||||
the_silver_searcher
|
the_silver_searcher
|
||||||
vim)
|
vim)
|
||||||
|
|
||||||
@@ -62,15 +61,13 @@ COMMON_DEB=(exuberant-ctags
|
|||||||
rpm_based() {
|
rpm_based() {
|
||||||
if [[ $DISTRO_ID == 'fedora' ]]; then
|
if [[ $DISTRO_ID == 'fedora' ]]; then
|
||||||
PGS=(ptpython3
|
PGS=(ptpython3
|
||||||
python2
|
|
||||||
python2-devel
|
|
||||||
python2-pip
|
|
||||||
python3-apsw
|
python3-apsw
|
||||||
python3-flake8
|
python3-flake8
|
||||||
python3-ipython
|
python3-ipython
|
||||||
python3-jedi
|
python3-jedi
|
||||||
python3-mccabe
|
python3-mccabe
|
||||||
python3-pylint)
|
python3-pylint
|
||||||
|
rxvt-unicode)
|
||||||
elif [[ $DISTRO_ID == 'centos' ]]; then
|
elif [[ $DISTRO_ID == 'centos' ]]; then
|
||||||
PGS=(ptpython2
|
PGS=(ptpython2
|
||||||
python-devel
|
python-devel
|
||||||
@@ -83,7 +80,8 @@ rpm_based() {
|
|||||||
python2-pip
|
python2-pip
|
||||||
python34-apsw
|
python34-apsw
|
||||||
python36-jedi
|
python36-jedi
|
||||||
python36-mccabe)
|
python36-mccabe
|
||||||
|
rxvt-unicode-256color)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 1. update
|
# 1. update
|
||||||
@@ -118,7 +116,7 @@ rpm_based() {
|
|||||||
sudo pip install ${pkgs_to_install}
|
sudo pip install ${pkgs_to_install}
|
||||||
fi
|
fi
|
||||||
elif [[ $DISTRO_ID == 'centos' ]]; then
|
elif [[ $DISTRO_ID == 'centos' ]]; then
|
||||||
sudo pip3 install -u pip setuptools
|
sudo pip3 install -U pip setuptools
|
||||||
installed_pkgs=$(pip list)
|
installed_pkgs=$(pip list)
|
||||||
if echo "${installed_pkgs}" | grep -qv "rainbow"; then
|
if echo "${installed_pkgs}" | grep -qv "rainbow"; then
|
||||||
sudo pip install rainbow
|
sudo pip install rainbow
|
||||||
|
|||||||
Reference in New Issue
Block a user