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)