mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:06:41 +00:00
27 lines
484 B
Bash
27 lines
484 B
Bash
#
|
|
# Python environment setup
|
|
#
|
|
|
|
install_python_global_packages () {
|
|
local packages=(
|
|
'ansible'
|
|
'molecule[docker]'
|
|
'yamllint'
|
|
)
|
|
|
|
if (( $+commands[brew] )); then
|
|
brew list python >/dev/null || brew install python
|
|
fi
|
|
|
|
local pipcmd="pip"
|
|
if (( $+commands[pip3] )); then; pipcmd="pip3"; fi
|
|
|
|
$pipcmd install --upgrade setuptools
|
|
$pipcmd install --upgrade "${packages[@]}"
|
|
}
|
|
|
|
# Aliases
|
|
alias ap="ansible-playbook"
|
|
alias av="ansible-vault"
|
|
alias mo="molecule"
|