Improve Macports installs

This commit is contained in:
ViViDboarder 2017-11-29 14:05:13 -08:00
parent eb580988bc
commit c14d734137
2 changed files with 11 additions and 10 deletions

View File

@ -192,7 +192,8 @@ package () {
elif [ "$PACKAGE_MANAGER" == 'yum' ]; then elif [ "$PACKAGE_MANAGER" == 'yum' ]; then
yum install -y $1 yum install -y $1
elif [ "$PACKAGE_MANAGER" == 'port' ]; then elif [ "$PACKAGE_MANAGER" == 'port' ]; then
port install $1 # Unintuitive, but this skips all promps which should assume Y
port -N install $1
elif [ "$PACKAGE_MANAGER" == 'brew' ]; then elif [ "$PACKAGE_MANAGER" == 'brew' ]; then
brew install $1 brew install $1
else else
@ -223,7 +224,8 @@ sudo_package () {
elif [ "$PACKAGE_MANAGER" == 'yum' ]; then elif [ "$PACKAGE_MANAGER" == 'yum' ]; then
sudo yum install -y $1 sudo yum install -y $1
elif [ "$PACKAGE_MANAGER" == 'port' ]; then elif [ "$PACKAGE_MANAGER" == 'port' ]; then
sudo port install $1 # Unintuitive, but this skips all promps which should assume Y
sudo port -N install $1
elif [ "$PACKAGE_MANAGER" == 'brew' ]; then elif [ "$PACKAGE_MANAGER" == 'brew' ]; then
brew install $1 brew install $1
else else

View File

@ -9,11 +9,17 @@ case "$PACKAGE_MANAGER" in
# Non-standard packages # Non-standard packages
sudo_package 'the_silver_searcher md5sha1sum gradle go bash apache-ant' sudo_package 'the_silver_searcher md5sha1sum gradle go bash apache-ant'
# Python packages # Python packages
sudo_package 'python27 py27-pip py27-six python36 py36-pip py36-six' sudo_package 'python27 py27-ipython py27-pip py27-six py27-tox py27-flake8 py27-virtualenv'
sudo_package 'python36 py36-ipython py36-pip py36-six py36-tox py36-flake8 py36-virtualenv'
sudo port select --set python python27 sudo port select --set python python27
sudo port select --set python2 python27
sudo port select --set python3 python36 sudo port select --set python3 python36
sudo port select --set ipython py27-ipython
sudo port select --set ipython2 py27-ipython
sudo port select --set ipython3 py36-ipython
sudo port select --set pip pip27 sudo port select --set pip pip27
sudo port select --set tox tox27 sudo port select --set tox tox27
sudo port select --set flake8 flake8-27
sudo port select --set virtualenv virtualenv27 sudo port select --set virtualenv virtualenv27
# Macvim with ruby and python support # Macvim with ruby and python support
# sudo_package 'macvim +ruby +python27' # sudo_package 'macvim +ruby +python27'
@ -31,10 +37,3 @@ case "$PACKAGE_MANAGER" in
sudo_package 'build-essential vim golang-go' sudo_package 'build-essential vim golang-go'
;; ;;
esac esac
# Install ruby gems
# TODO: Install RVM and other ruby requirements and get ruby 1.9.2
sudo gem install rake
# install python packages
sudo pip install -U pip ipython flake8 virtualenv tox