Fix profiler error if using --skip-requirements

This commit is contained in:
awsr
2025-10-18 16:12:09 -07:00
committed by GitHub
parent 758b006104
commit b55c8cd7ac
+2 -2
View File
@@ -1294,11 +1294,11 @@ def install_optional():
def install_requirements():
t_start = time.time()
if args.skip_requirements and not args.requirements:
return
if args.profile:
pr = cProfile.Profile()
pr.enable()
if args.skip_requirements and not args.requirements:
return
if int(sys.version_info.minor) >= 13:
install('audioop-lts')
if not installed('diffusers', quiet=True): # diffusers are not installed, so run initial installation