Clarify Python library dependencies.

This commit is contained in:
0x80 2021-12-29 00:00:00 +00:00
parent f6fa8d652a
commit c24a651abc
Signed by: 0x80
GPG Key ID: 68368BCBC000EF51
2 changed files with 44 additions and 7 deletions

View File

@ -13,13 +13,50 @@ rsstube is written in Python, an interpreted language. There's no need to compil
### Dependencies ### Dependencies
- python3 - Python 3
- python3-pycurl - PycURL
**Arch Linux:**
`sudo pacman -S python python-pycurl`
**Debian:**
`sudo apt install python3 python3-pycurl`
**Fedora:**
`sudo dnf install python3 python3-pycurl`
**Pip:**
(Assuming `python` and `pip` are already installed...)
`pip install --user pycurl`
### Optional Dependencies ### Optional Dependencies
- git (for updating via git) - Git (for updating via git)
- python3-GitPython (for updating via git) - GitPython (for updating via git)
- PyGObject (for the GUI)
**Arch Linux:**
`sudo pacman -S git python-gitpython python-gobject`
**Debian:**
`sudo apt install git python3-git python3-gi`
**Fedora:**
`sudo dnf install git python3-GitPython python3-gobject`
**Pip:**
(Assuming `git` is already installed...)
`pip install --user GitPython PyGObject`
### Sample Installation ### Sample Installation
@ -29,7 +66,7 @@ rsstube is written in Python, an interpreted language. There's no need to compil
### Updating ### Updating
If you installed rsstube with git, and you have python3-GitPython installed, use `rsstube -U` or `rsstube --update`. If you installed rsstube with git, and you have GitPython installed, use `rsstube -U` or `rsstube --update`.
If you installed rsstube another way (manual download, package manager), update rsstube that same way. If you installed rsstube another way (manual download, package manager), update rsstube that same way.

View File

@ -36,8 +36,8 @@ def update():
output = g.pull() output = g.pull()
print(output) print(output)
except ImportError: except ImportError:
print("python3-GitPython must be installed to update rsstube this way.") print("GitPython must be installed to update rsstube this way.")
print("If you don't want to install python3-GitPython, you can run `git pull` in the directory where rsstube was installed.") print("If you don't want to install GitPython, you can run `git pull` in the directory where rsstube was installed.")
else: else:
print("rsstube appears to have been manually downloaded or installed with a package manager. Use that same method to update.") print("rsstube appears to have been manually downloaded or installed with a package manager. Use that same method to update.")