added pipx and yamllint

This commit is contained in:
Nikita Bykov
2020-10-07 09:29:37 +03:00
parent 28a8724352
commit 5d96d50f59
11 changed files with 89 additions and 8 deletions

View File

@@ -7,7 +7,19 @@ echo "Brew Installing Python 3"
/usr/local/bin/brew install python3
echo "Brew Installing Python 2"
# Create local tap with formula due to python2 formula depreciation
# Create local tap with formula due to python2 formula depreciation
/usr/local/bin/brew tap-new local/python2
FORMULA_PATH=$(/usr/local/bin/brew extract python@2 local/python2 | grep "Homebrew/Library/Taps")
/usr/local/bin/brew install $FORMULA_PATH
echo "Installing pipx"
export PIPX_BIN_DIR=/opt/pipx_bin
export PIPX_HOME=/opt/pipx
brew install pipx
python3 -m pipx ensurepath
echo "export PIPX_BIN_DIR=${PIPX_BIN_DIR}" >> "${HOME}/.bashrc"
echo "export PIPX_HOME=${PIPX_HOME}" >> "${HOME}/.bashrc"
echo 'export PATH="$PIPX_BIN_DIR:$PATH"' >> "${HOME}/.bashrc"