MCPcopy
hub / github.com/emacs-eaf/emacs-application-framework / main

Function main

install-eaf.py:518–546  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

516 print(bcolors.WARNING + message + bcolors.ENDC)
517
518def main():
519 try:
520 distro = get_distro()
521 with open(os.path.join(script_path, 'dependencies.json')) as f:
522 deps_dict = json.load(f)
523
524 if (not args.ignore_core_deps and len(args.install) == 0) or args.install_core_deps:
525 print("[EAF] ------------------------------------------")
526 install_core_deps(distro, deps_dict)
527 print("[EAF] ------------------------------------------")
528
529 if not args.install_core_deps:
530 print("[EAF] ------------------------------------------")
531 install_app_deps(distro, deps_dict)
532 print("[EAF] ------------------------------------------")
533
534 current_desktop = os.getenv("XDG_CURRENT_DESKTOP") or os.getenv("XDG_SESSION_DESKTOP")
535 if current_desktop in ["Hyprland", "sway"]:
536 print("[EAF] Compiling reinput")
537 subprocess.Popen("gcc reinput/main.c -o reinput/reinput `pkg-config --cflags --libs libinput libevdev libudev`",
538 shell=True)
539
540 print("[EAF] install-eaf.py finished.\n")
541
542 for msg in important_messages:
543 print_warning_message(msg)
544 except KeyboardInterrupt:
545 print("[EAF] install-eaf.py aborted!")
546 sys.exit()
547
548
549if __name__ == '__main__':

Callers 1

install-eaf.pyFile · 0.70

Calls 4

get_distroFunction · 0.85
install_core_depsFunction · 0.85
install_app_depsFunction · 0.85
print_warning_messageFunction · 0.85

Tested by

no test coverage detected