From 2db83ecf1e5912015618a787e76cd622d968f5db Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 12 Jun 2018 09:20:18 +0530 Subject: [PATCH] Run make docs for linux-package only if docs are not found --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index ae13e3433..9b312a24d 100755 --- a/setup.py +++ b/setup.py @@ -790,6 +790,8 @@ def main(): ) elif args.action == 'linux-package': build(args, native_optimizations=False) + if not os.path.exists(os.path.join('docs/_build/html/index.html')): + run_tool(['make', 'docs']) package(args) elif args.action == 'osx-bundle': build(args, native_optimizations=False)