Skip to content

Commit

Permalink
Remove pip dependency and use distro packages
Browse files Browse the repository at this point in the history
Fixes #106.

Note: Needs testing on Arch and Fedora.
  • Loading branch information
siddhpant committed Jul 5, 2023
1 parent bc50212 commit 4ff64dd
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,19 +98,21 @@ pkg_mgr_found="true"

if [[ $(command -v apt-get) ]]; then
# Debian based distro.
system_dependencies+="libayatana-appindicator3-1"
system_dependencies+="libayatana-appindicator3-1 python3-gi"
pkg_install_cmd="apt-get install -y"
pkg_search_cmd="dpkg-query -l"

elif [[ $(command -v pacman) ]]; then
# Arch based distro.
system_dependencies+="libindicator-gtk3 libappindicator-gtk3"
system_dependencies+="python-gobject"
pkg_install_cmd="pacman -S"
pkg_search_cmd="pacman -Qs"

elif [[ $(command -v yum) ]]; then
# RPM based distro.
system_dependencies+="libindicator-gtk3 libappindicator-gtk3"
system_dependencies+="python3-gobject"
pkg_install_cmd="yum install"
pkg_search_cmd="yum list installed | grep"

Expand Down Expand Up @@ -148,16 +150,6 @@ if [[ $pkg_mgr_found == "true" ]]; then
print_info_bold "...Done installing system dependencies!\n"
fi


print_info_bold "Installing Python dependencies..."

if [[ ! $(pip3 install -r requirements.txt) ]]; then
print_warn_bold "ERROR: Could not install Python dependencies."
exit 1
fi

print_info_bold "...Done installing Python dependencies!\n"

###############################################################################

# The main installation starts here. Will exit on failure.
Expand Down

0 comments on commit 4ff64dd

Please sign in to comment.