From ab59a7f72cb5ed86d2d9ded6b6e62e46ecedc700 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 26 Jun 2026 15:41:55 +0530 Subject: [PATCH] Setup location for compiled shaders --- kitty/constants.py | 1 + setup.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/kitty/constants.py b/kitty/constants.py index d38c4a8cb..891168b1d 100644 --- a/kitty/constants.py +++ b/kitty/constants.py @@ -156,6 +156,7 @@ logo_png_file = os.path.join(kitty_base_dir, 'logo', 'kitty.png') beam_cursor_data_file = os.path.join(kitty_base_dir, 'logo', 'beam-cursor.png') shell_integration_dir = os.path.join(kitty_base_dir, 'shell-integration') fonts_dir = os.path.join(kitty_base_dir, 'fonts') +shaders_dir = os.path.join(kitty_base_dir, 'shaders') try: shell_path = os.environ.get('SHELL') or pwd.getpwuid(os.geteuid()).pw_shell or '/bin/sh' except KeyError: diff --git a/setup.py b/setup.py index 0f0a7edd4..be22dd308 100755 --- a/setup.py +++ b/setup.py @@ -1877,6 +1877,7 @@ def package(args: Options, bundle_type: str, do_build_all: bool = True) -> None: shutil.copy2('logo/beam-cursor@2x.png', os.path.join(libdir, 'logo')) shutil.copytree('shell-integration', os.path.join(libdir, 'shell-integration'), dirs_exist_ok=True) shutil.copytree('fonts', os.path.join(libdir, 'fonts'), dirs_exist_ok=True) + shutil.copytree('shaders', os.path.join(libdir, 'shaders'), dirs_exist_ok=True) allowed_extensions = frozenset('py glsl so'.split()) def src_ignore(parent: str, entries: Iterable[str]) -> List[str]: @@ -1957,7 +1958,7 @@ def clean(for_cross_compile: bool = False) -> None: 'linux-package', 'kitty.app', 'asan-launcher', 'kitty-profile') # no fonts as that is not generated by build if not for_cross_compile: - safe_remove('docs/generated') + safe_remove('docs/generated', 'shaders') clean_launcher_dir('kitty/launcher') def excluded(root: str, d: str) -> bool: