From 2304f66ad2b8e3260e71823610bd387c906a5ba4 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Tue, 24 Oct 2023 08:52:43 -0400 Subject: [PATCH] fix sd-webui 1.6 --- README.md | 4 +++- .../AUTOMATIC1111/stable-diffusion-webui/package.yml | 11 ++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 488f8b02..073368c2 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ $ pkgx yq .provides * `pkg build` and `pkg test` take a `-L` flag to run in a Linux Docker container > * All commands take an optional pkg-spec eg. `pkg build node@19` +> While inside the pantry `dev` environment you can run commands from any built +> packages provided you specified their `provides:` key in the `package.yml`. > We use a special package called [`brewkit`] to build packages both here and > in CI/CD. `brewkit` provides the `pkg` command. diff --git a/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/package.yml b/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/package.yml index 5f564cd0..6f0590a2 100644 --- a/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/package.yml +++ b/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/package.yml @@ -64,7 +64,7 @@ build: cd {{prefix}} # move this installation into its prefix - - run: | + - | cp -a $SRCROOT lib mkdir -p bin @@ -85,6 +85,15 @@ build: working-directory: lib + # gradio 3.41.2 fails to load anything if any part in the install path has a `.` prefix 🤦‍♂️ + # https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/13292 + # FIXME should stop doing this when fixed + # https://github.com/gradio-app/gradio/pull/4303 + - run: + sed -i '/is_dotfile =/s/= .*/= False/' routes.py + working-directory: + lib/venv/lib/python3.10/site-packages/gradio + # delete our crap - rm -rf lib/props lib/xyz.tea.* lib/tea.yaml