From 6db46850eb5bdef8dbd44f29a7bbbfa1f650911e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 2 Sep 2021 13:05:14 +0530 Subject: [PATCH] Fix #3989 --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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]: