diff --git a/docs/build.rst b/docs/build.rst index 33ae16473..ccbaab42b 100644 --- a/docs/build.rst +++ b/docs/build.rst @@ -82,8 +82,9 @@ without needing to install all of kitty. .. note:: You need a couple of extra dependencies to build linux-package. :file:`tic` to compile terminfo files, usually found in the - development package of :file:`ncurses`. Also, :file:`sphinx-build` - from the `Sphinx documentation generator + development package of :file:`ncurses`. Also, if you are building form + a git checkout instead of the released source code tarball, you will + need :file:`sphinx-build` from the `Sphinx documentation generator `_. This applies to creating packages for kitty for macOS package managers such as diff --git a/setup.py b/setup.py index cf1712ce8..ae13e3433 100755 --- a/setup.py +++ b/setup.py @@ -546,7 +546,8 @@ def copy_man_pages(ddir): src = 'docs/_build/man' if not os.path.exists(src): raise SystemExit('''\ -The kitty man page is missing. If you are building from git then run: make docs +The kitty man page is missing. If you are building from git then run: +make && make docs (needs the sphinx documentation system to be installed) ''') shutil.copytree(src, os.path.join(mandir, 'man1')) @@ -562,7 +563,8 @@ def copy_html_docs(ddir): src = 'docs/_build/html' if not os.path.exists(src): raise SystemExit('''\ -The kitty html docs are missing. If you are building from git then run: make html +The kitty html docs are missing. If you are building from git then run: +make && make docs (needs the sphinx documentation system to be installed) ''') shutil.copytree(src, htmldir) @@ -788,8 +790,6 @@ def main(): ) elif args.action == 'linux-package': build(args, native_optimizations=False) - if not args.for_freeze: - run_tool(['make', 'docs']) package(args) elif args.action == 'osx-bundle': build(args, native_optimizations=False)