mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Use sorted boolean cli options to prevent spurious rebuilds
This commit is contained in:
parent
2566a79472
commit
10683c748c
1 changed files with 5 additions and 2 deletions
7
setup.py
7
setup.py
|
|
@ -133,7 +133,10 @@ class CompilationDatabase:
|
|||
|
||||
def cmd_changed(self, compile_cmd: Command) -> bool:
|
||||
key, cmd = compile_cmd.key, compile_cmd.cmd
|
||||
return bool(self.db.get(key) != cmd)
|
||||
dkey = self.db.get(key)
|
||||
if dkey != cmd:
|
||||
return True
|
||||
return False
|
||||
|
||||
def __enter__(self) -> 'CompilationDatabase':
|
||||
self.all_keys: Set[CompileKey] = set()
|
||||
|
|
@ -1280,7 +1283,7 @@ def read_bool_options(path: str = 'kitty/cli.py') -> Tuple[str, ...]:
|
|||
|
||||
@lru_cache(2)
|
||||
def kitty_cli_boolean_options() -> Tuple[str, ...]:
|
||||
return tuple(set(read_bool_options()) | set(read_bool_options('kittens/panel/main.py')))
|
||||
return tuple(sorted(set(read_bool_options()) | set(read_bool_options('kittens/panel/main.py'))))
|
||||
|
||||
|
||||
def build_launcher(args: Options, launcher_dir: str = '.', bundle_type: str = 'source') -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue