diff --git a/README.md b/README.md index 10fa0c3..2362d9a 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,7 @@ What's New Install ------- + Please run: ``` @@ -30,6 +31,33 @@ $ pip3 install gnomecast If installing in a `mkvirtualenv` built virtual environment, make sure you include the `--system-site-packages` parameter to get the GTK bindings. +Fedora +~~~~~~ + +This section describes how to install this application on Fedora inside a virtual environment +without relying on ``python3-gobject`` system level package and ``--system-site-packages`` +virtualenv flag. + +1. Install OS level dependencies + +```bash +sudo dnf install ffmpeg cairo-gobject-devel gobject-introspection-devel dbus-devel cairo-devel +``` + +2. Install Python dependencies + +NOTE: ``dbus-python`` is an optional dependency. + +```bash +pip3 install pygobject dbus-python +``` + +3. Install the application itself + +```bash +pip3 install gnomecast +``` + Run --- diff --git a/gnomecast.py b/gnomecast.py index 5bd1ca8..6bf87e5 100644 --- a/gnomecast.py +++ b/gnomecast.py @@ -33,9 +33,11 @@ line = "-"*70 ERROR_MESSAGE = """ {} -Python package "gi" (for building the GU not found.\n +Python package "gi" (for building the GUI not found.\n If on Debian or Ubuntu, please run: $ sudo apt-get install python3-gi\n +If on Fedora or RedHat, please run: +$ sudo dnf install python3-gobject For other distributions please look up the equivalent package.\n If this doesn't work, please report the error here: https://github.com/keredson/gnomecast\n diff --git a/requirements.txt b/requirements.txt index f2d299b..8934db4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,3 +3,4 @@ pychromecast bottle pycaption paste +pygobject diff --git a/setup.py b/setup.py index ec0c27a..270d61a 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,8 @@ def long_description(): 'Programming Language :: Python', 'Programming Language :: Python :: 3', ], - install_requires=['pychromecast','bottle','pycaption','paste','html5lib'], + install_requires=['pychromecast','bottle','pycaption','paste','html5lib', + 'pygobject'], data_files=[ ('share/icons/hicolor/16x16/apps', ['icons/gnomecast_16.png']), ('share/icons/hicolor/48x48/apps', ['icons/gnomecast_48.png']),