Remove python 2 and common py2 packages

Eg python27 and python3-six, python3-flake8 python3-tox
This commit is contained in:
ViViDboarder 2023-12-13 09:35:28 -08:00
parent 28e1307978
commit 77495ad1aa

View File

@ -26,8 +26,7 @@ case "$PACKAGE_MANAGER" in
# Non-standard packages
packages="$packages md5sha1sum"
# Python packages
packages="$packages python27 py27-ipython py27-pip py27-six py27-virtualenv"
packages="$packages python$PY3V py$PY3V-ipython py$PY3V-pip py$PY3V-six py$PY3V-tox py$PY3V-flake8 py$PY3V-virtualenv py$PY3V-black"
packages="$packages python$PY3V py$PY3V-ipython py$PY3V-pip py$PY3V-virtualenv py$PY3V-black"
# Macvim with ruby and python support
# sudo_package 'macvim +ruby +python27'
# Vim with ruby and python support
@ -46,7 +45,7 @@ case "$PACKAGE_MANAGER" in
# Neovim python plugins
packages="$packages python3-neovim"
# Python packages
packages="$packages python3 python3-ipython python3-pip python3-six tox python3-flake8 black python3-virtualenv python3-venv"
packages="$packages python3 python3-ipython python3-pip python3-six black python3-virtualenv python3-venv"
# Lua
packages="$packages luarocks"
;;
@ -71,8 +70,6 @@ if [[ "$PACKAGE_MANAGER" == "port" ]]; then
sudo port select --set pip2 pip27
sudo port select --set pip3 "pip$PY3V"
# Use py3 versions for utilities
sudo port select --set tox "tox$PY3V"
sudo port select --set flake8 "flake8-$PY3V"
sudo port select --set black "black$PY3V"
sudo port select --set virtualenv "virtualenv$PY3V"