mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-27 03:42:49 +00:00
Move docs generation into create_linux_bundle_gunk
This commit is contained in:
parent
37bf0e81d2
commit
d530dccb96
1 changed files with 2 additions and 3 deletions
5
setup.py
5
setup.py
|
|
@ -705,6 +705,8 @@ def compile_python(base_path):
|
|||
|
||||
|
||||
def create_linux_bundle_gunk(ddir, libdir_name):
|
||||
if not os.path.exists(os.path.join(base, 'docs/_build/html')):
|
||||
run_tool(['make', 'docs'])
|
||||
copy_man_pages(ddir)
|
||||
copy_html_docs(ddir)
|
||||
icdir = os.path.join(ddir, 'share', 'icons', 'hicolor', '256x256', 'apps')
|
||||
|
|
@ -865,9 +867,6 @@ def package(args, bundle_type):
|
|||
path = os.path.join(root, f)
|
||||
os.chmod(path, 0o755 if f.endswith('.so') else 0o644)
|
||||
if not is_macos:
|
||||
if bundle_type.startswith('linux-'):
|
||||
if not os.path.exists(os.path.join(base, 'docs/_build/html')):
|
||||
run_tool(['make', 'docs'])
|
||||
create_linux_bundle_gunk(ddir, args.libdir_name)
|
||||
|
||||
if bundle_type.startswith('macos-'):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue