Skip to content

Commit

Permalink
Honor --skip-install for extension installers
Browse files Browse the repository at this point in the history
  • Loading branch information
catboxanon committed Aug 28, 2023
1 parent d1c93c3 commit cb170c3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/launch_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ def run_extension_installer(extension_dir):
if not os.path.isfile(path_installer):
return

if args.skip_install:
return

try:
env = os.environ.copy()
env['PYTHONPATH'] = f"{os.path.abspath('.')}{os.pathsep}{env.get('PYTHONPATH', '')}"
Expand Down Expand Up @@ -404,7 +407,8 @@ def prepare_environment():
run_pip(f"install -r \"{requirements_file}\"", "requirements")
startup_timer.record("install requirements")

run_extensions_installers(settings_file=args.ui_settings_file)
if not args.skip_install:
run_extensions_installers(settings_file=args.ui_settings_file)

if args.update_check:
version_check(commit)
Expand Down

0 comments on commit cb170c3

Please sign in to comment.