How To Install python3-sphinx_selective_exclude on Fedora 36

In this tutorial we learn how to install python3-sphinx_selective_exclude in Fedora 36. python3-sphinx_selective_exclude is Sphinx eager “.. only

Introduction

In this tutorial we learn how to install python3-sphinx_selective_exclude on Fedora 36.

What is python3-sphinx_selective_exclude

The implementation of “.. only tool is known to violate principles of least user surprise and user expectations in general. Instead of excluding content early in the pipeline (preprocessor style), Sphinx defers exclusion until output phase, and what’s the worst, various stages processing ignore “only” blocks and their exclusion status, so they may leak unexpected information into ToC, indexes, etc. This projects tries to rectify situation on users’ side. It actually changes the way Sphinx processes “only” directive, but does this without forking the project, and instead is made as a standard Sphinx extension, which a user may add to their documentation config. Unlike normal extensions, extensions provided in this package monkey-patch Sphinx core to work in a way expected by users.

We can use yum or dnf to install python3-sphinx_selective_exclude on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-sphinx_selective_exclude.

Install python3-sphinx_selective_exclude on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-sphinx_selective_exclude using dnf by running the following command:

sudo dnf -y install python3-sphinx_selective_exclude

Install python3-sphinx_selective_exclude on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-sphinx_selective_exclude using yum by running the following command:

sudo yum -y install python3-sphinx_selective_exclude

How To Uninstall python3-sphinx_selective_exclude on Fedora 36

To uninstall only the python3-sphinx_selective_exclude package we can use the following command:

sudo dnf remove python3-sphinx_selective_exclude

python3-sphinx_selective_exclude Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/sphinx_selective_exclude
/usr/lib/python3.10/site-packages/sphinx_selective_exclude-1.0.3-py3.10.egg-info
/usr/lib/python3.10/site-packages/sphinx_selective_exclude-1.0.3-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/sphinx_selective_exclude-1.0.3-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/sphinx_selective_exclude-1.0.3-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/sphinx_selective_exclude-1.0.3-py3.10.egg-info/namespace_packages.txt
/usr/lib/python3.10/site-packages/sphinx_selective_exclude-1.0.3-py3.10.egg-info/not-zip-safe
/usr/lib/python3.10/site-packages/sphinx_selective_exclude-1.0.3-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/sphinx_selective_exclude/__init__.py
/usr/lib/python3.10/site-packages/sphinx_selective_exclude/__pycache__
/usr/lib/python3.10/site-packages/sphinx_selective_exclude/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/sphinx_selective_exclude/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/sphinx_selective_exclude/__pycache__/eager_only.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/sphinx_selective_exclude/__pycache__/eager_only.cpython-310.pyc
/usr/lib/python3.10/site-packages/sphinx_selective_exclude/__pycache__/modindex_exclude.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/sphinx_selective_exclude/__pycache__/modindex_exclude.cpython-310.pyc
/usr/lib/python3.10/site-packages/sphinx_selective_exclude/__pycache__/search_auto_exclude.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/sphinx_selective_exclude/__pycache__/search_auto_exclude.cpython-310.pyc
/usr/lib/python3.10/site-packages/sphinx_selective_exclude/eager_only.py
/usr/lib/python3.10/site-packages/sphinx_selective_exclude/modindex_exclude.py
/usr/lib/python3.10/site-packages/sphinx_selective_exclude/search_auto_exclude.py
/usr/share/doc/python3-sphinx_selective_exclude
/usr/share/doc/python3-sphinx_selective_exclude/README.md
/usr/share/licenses/python3-sphinx_selective_exclude
/usr/share/licenses/python3-sphinx_selective_exclude/LICENSE

References

Summary

In this tutorial we learn how to install python3-sphinx_selective_exclude on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).