import subprocess from commands.util import pacman def setup(): print("==> Installing required packages") if not pacman.install_package_list(["git"]): print("Git installation failed") return subprocess.run(["git", "clone", "https://aur.archlinux.org/yay.git"], cwd="/tmp") subprocess.run(["makepkg", "-si"], cwd="/tmp/yay") print("==> Installation completed")