File 0001-Do-run-npm-install.patch of Package python-open-webui
From ebaaf972144f895e3610666b0cb86fcc09170102 Mon Sep 17 00:00:00 2001
From: yeey <gyee@suse.com>
Date: Thu, 3 Oct 2024 23:31:19 -0700
Subject: [PATCH] Do run "npm install"
As it require internet access, which is not possible in OBS.
Node modules had been generated with obs-service-node_modules.
---
hatch_build.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/hatch_build.py b/hatch_build.py
index 8ddaf074..4e837b15 100644
--- a/hatch_build.py
+++ b/hatch_build.py
@@ -16,8 +16,6 @@ class CustomBuildHook(BuildHookInterface):
raise RuntimeError(
"NodeJS `npm` is required for building Open Webui but it was not found"
)
- stderr.write("### npm install\n")
- subprocess.run([npm, "install"], check=True) # noqa: S603
stderr.write("\n### npm run build\n")
os.environ["APP_BUILD_HASH"] = version
subprocess.run([npm, "run", "build"], check=True) # noqa: S603
--
2.45.2