From 17ddbccdb056e80c16f574ebc99c596d8acef39b Mon Sep 17 00:00:00 2001 From: Jacob Heider Date: Tue, 5 Sep 2023 21:04:41 +0200 Subject: [PATCH] fix(sd-webui) (#3178) * fix(sd-webui) * buckshot * how many choices are there? * i definitely hate this, but maybe it'll work * this seems to "work" :/ --- .../AUTOMATIC1111/stable-diffusion-webui/package.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/package.yml b/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/package.yml index 4bda0124..5f564cd0 100644 --- a/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/package.yml +++ b/projects/github.com/AUTOMATIC1111/stable-diffusion-webui/package.yml @@ -18,6 +18,9 @@ dependencies: # still tries to use git. hopefully nothing is broken because we # clear out all the git repos (they were 100s of MB) git-scm.org: ^2 + # For replacing Pillow's vendorized libwebp + darwin/x86-64: + google.com/webp: '*' #FIXME pls make this work on Linux thanks platforms: darwin @@ -42,6 +45,12 @@ build: # installs python virtual-env - ./webui.sh + # Pillow ships dylibs that don't have room for our header rewrites. + # If we delete them, we can use ours. + - run: rm libwebp.7.dylib + working-directory: venv/lib/python3.10/site-packages/PIL/.dylibs + if: darwin/x86-64 + # torchvision .whl dylibs are broken out the box :/ - run: install_name_tool @@ -68,6 +77,7 @@ build: # removes the prepare_environment() step since we have already done that - run: | sed -i.bak \ + -e '/with launch_utils\.startup_timer\.subcategory("prepare environment"):/{N;N;N;d;}' \ -e '/if not args\.skip_prepare_environment:/{N;N;d;}' \ -e '/prepare_environment()/d' \ launch.py