Files
dotfiles/zsh/python.zsh
Jim Myhrberg 664f06bbdb refactor: use rtx to manage Go, Python, NodeJS, and more
This means g, pyenv, and volta are gone. And a lot of other tools
previously installed with zinit are also installed with rtx now instead.

This includes starship, direnv, shfmt, jq, and more.
2023-03-09 23:35:17 +00:00

32 lines
896 B
Bash

#
# Python environment setup.
#
# ==============================================================================
# aliases
# ==============================================================================
alias ap="env OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES ansible-playbook"
alias av="env OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES ansible-vault"
alias mo="env OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES molecule"
# ==============================================================================
# global python package
# ==============================================================================
install_python_global_packages() {
local packages=(
'ansible'
'grip'
'molecule[docker]'
'passlib'
'yamllint'
)
local pipcmd="pip"
if command-exists pip3; then pipcmd="pip3"; fi
"$pipcmd" install --upgrade setuptools
"$pipcmd" install --upgrade "${packages[@]}"
}