diff --git a/setup.py b/setup.py index 33b5db15e..b737c3c71 100755 --- a/setup.py +++ b/setup.py @@ -1100,7 +1100,10 @@ def package(args: Options, bundle_type: str) -> None: shutil.copy2('logo/kitty.png', os.path.join(libdir, 'logo')) shutil.copy2('logo/beam-cursor.png', os.path.join(libdir, 'logo')) 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) + try: + shutil.copytree('shell-integration', os.path.join(libdir, 'shell-integration'), dirs_exist_ok=True) + except TypeError: # python < 3.8 + shutil.copytree('shell-integration', os.path.join(libdir, 'shell-integration')) allowed_extensions = frozenset('py glsl so'.split()) def src_ignore(parent: str, entries: Iterable[str]) -> List[str]: