--- a/setup.py 2021-05-06 05:41:41.000000000 +0300 +++ b/setup.py 2021-05-06 06:26:41.095551377 +0300 @@ -901,9 +901,10 @@ def create_linux_bundle_gunk(ddir: str, libdir_name: str) -> None: - if not os.path.exists('docs/_build/html'): - make = "gmake" if is_freebsd else "make" - run_tool([make, 'docs']) + if os.path.exists('/usr/bin/sphinx-build'): + if not os.path.exists('docs/_build/html'): + make = "gmake" if is_freebsd else "make" + run_tool([make, 'docs']) copy_man_pages(ddir) copy_html_docs(ddir) icdir = os.path.join(ddir, 'share', 'icons', 'hicolor', '256x256', 'apps')