Faster color table

This commit is contained in:
Kovid Goyal
2016-11-10 08:00:06 +05:30
parent 6334b39935
commit 32e4de1c79
3 changed files with 55 additions and 1 deletions

View File

@@ -78,13 +78,14 @@ def option_parser():
help='Build extension modules with debugging symbols')
return p
def main():
if sys.version_info < (3, 5):
raise SystemExit('python >= 3.5 required')
args = option_parser().parse_args()
init_env(args.debug)
if args.action == 'build':
compile_c_extension('kitty/fast_data_types', 'kitty/line.c', 'kitty/data-types.c', 'kitty/line-buf.c', 'kitty/cursor.c')
compile_c_extension('kitty/fast_data_types', 'kitty/line.c', 'kitty/data-types.c', 'kitty/line-buf.c', 'kitty/cursor.c', 'kitty/colors.c')
elif args.action == 'test':
os.execlp(sys.executable, sys.executable, os.path.join(base, 'test.py'))