--- setup.py.smb 2025-07-16 01:30:32.712541854 -0400 +++ setup.py 2025-07-16 01:32:17.054226172 -0400 @@ -1271,7 +1271,7 @@ if args.skip_building_kitten: print('Skipping building of the kitten binary because of a command line option. Build is incomplete', file=sys.stderr) return '' - cmd = go + ['build', '-v'] + cmd = go + ['build', '-buildmode=pie', '-v'] vcs_rev = args.vcs_rev or get_vcs_rev() ld_flags: List[str] = [] binary_data_flags = [f"-X kitty.VCSRevision={vcs_rev}"] @@ -1488,13 +1488,14 @@ base = Path(ddir) in_src_launcher = base / (f'{libdir_name}/kitty/kitty/launcher/kitty') launcher = base / 'bin/kitty' - skip_docs = False + skip_docs = True if not os.path.exists('docs/_build/html'): kitten_exe = os.path.join(os.path.dirname(str(launcher)), 'kitten') if os.path.exists(kitten_exe): os.environ['KITTEN_EXE_FOR_DOCS'] = kitten_exe make = 'gmake' if is_freebsd else 'make' - run_tool([make, 'docs']) + if not skip_docs: + run_tool([make, 'docs']) else: if args.skip_building_kitten: skip_docs = True