Fix macos-freeze building everything twice
This commit is contained in:
parent
399c700939
commit
a94b94cab0
7
setup.py
7
setup.py
@ -563,6 +563,7 @@ class CompilationDatabase:
|
|||||||
queue.append(Command(desc, cmd, is_newer_func, on_success or no_op, key, keyfile))
|
queue.append(Command(desc, cmd, is_newer_func, on_success or no_op, key, keyfile))
|
||||||
|
|
||||||
def build_all(self) -> None:
|
def build_all(self) -> None:
|
||||||
|
|
||||||
def sort_key(compile_cmd: Command) -> int:
|
def sort_key(compile_cmd: Command) -> int:
|
||||||
if compile_cmd.keyfile:
|
if compile_cmd.keyfile:
|
||||||
return os.path.getsize(compile_cmd.keyfile)
|
return os.path.getsize(compile_cmd.keyfile)
|
||||||
@ -753,7 +754,8 @@ def init_env_from_args(args: Options, native_optimizations: bool = False) -> Non
|
|||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
def build(args: Options, native_optimizations: bool = True) -> None:
|
def build(args: Options, native_optimizations: bool = True, call_init: bool = True) -> None:
|
||||||
|
if call_init:
|
||||||
init_env_from_args(args, native_optimizations)
|
init_env_from_args(args, native_optimizations)
|
||||||
sources, headers = find_c_files()
|
sources, headers = find_c_files()
|
||||||
compile_c_extension(
|
compile_c_extension(
|
||||||
@ -1269,8 +1271,9 @@ def main() -> None:
|
|||||||
build(args, native_optimizations=False)
|
build(args, native_optimizations=False)
|
||||||
package(args, bundle_type='linux-freeze')
|
package(args, bundle_type='linux-freeze')
|
||||||
elif args.action == 'macos-freeze':
|
elif args.action == 'macos-freeze':
|
||||||
build(args, native_optimizations=False)
|
init_env_from_args(args, native_optimizations=False)
|
||||||
build_launcher(args, launcher_dir=launcher_dir)
|
build_launcher(args, launcher_dir=launcher_dir)
|
||||||
|
build(args, native_optimizations=False, call_init=False)
|
||||||
package(args, bundle_type='macos-freeze')
|
package(args, bundle_type='macos-freeze')
|
||||||
elif args.action == 'kitty.app':
|
elif args.action == 'kitty.app':
|
||||||
args.prefix = 'kitty.app'
|
args.prefix = 'kitty.app'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user