From 1b2a1a1e77b0f9296f1c7cd69f2ae3de9ae0a812 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 31 Jul 2018 09:01:23 +0530 Subject: [PATCH] Add a check that tic works as expected Apparently on FreeBSD it exits with no errors but fails to write the compiled terminfo file. --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index 9a452a8e8..35c55c389 100755 --- a/setup.py +++ b/setup.py @@ -599,6 +599,8 @@ def package(args, for_bundle=False, sh_launcher=False): odir = os.path.join(x, 'terminfo') safe_makedirs(odir) subprocess.check_call(['tic', '-x', '-o' + odir, 'terminfo/kitty.terminfo']) + if not glob.glob(os.path.join(odir, '*/xterm-kitty')): + raise SystemExit('tic failed to output the compiled kitty terminfo file') shutil.copy2('__main__.py', libdir) shutil.copy2('logo/kitty.rgba', os.path.join(libdir, 'logo')) shutil.copy2('logo/beam-cursor.png', os.path.join(libdir, 'logo'))