mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 05:15:18 +00:00
feat: add OVERRIDE_PIP_INSTALL environment variable
This commit is contained in:
parent
19ee110b7d
commit
004700c125
1 changed files with 2 additions and 0 deletions
|
|
@ -95,6 +95,8 @@ try:
|
|||
except importlib.metadata.PackageNotFoundError:
|
||||
pass
|
||||
|
||||
OVERRIDE_PIP_INSTALL = os.environ.get("OVERRIDE_PIP_INSTALL")
|
||||
PIP_INSTALL = OVERRIDE_PIP_INSTALL if (OVERRIDE_PIP_INSTALL != None) else PIP_INSTALL
|
||||
|
||||
if PIP_INSTALL:
|
||||
PACKAGE_DATA = {"version": importlib.metadata.version("open-webui")}
|
||||
|
|
|
|||
Loading…
Reference in a new issue