Skip to content

Commit

Permalink
Skipping installation of requirements for disabled extensions (#582)
Browse files Browse the repository at this point in the history
Closes #563
  • Loading branch information
DevilaN authored Sep 9, 2023
1 parent 8474059 commit 630980b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ services:
<<: *base_service
profiles: ["auto"]
build: ./services/AUTOMATIC1111
image: sd-auto:65
image: sd-auto:66
environment:
- CLI_ARGS=--allow-code --medvram --xformers --enable-insecure-extension-access --api

Expand Down
6 changes: 6 additions & 0 deletions services/AUTOMATIC1111/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ shopt -s nullglob
# For install.py, please refer to https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Developing-extensions#installpy
list=(./extensions/*/install.py)
for installscript in "${list[@]}"; do
EXTNAME=`echo $installscript | cut -d '/' -f 3`
# Skip installing dependencies if extension is disabled in config
if `jq -e ".disabled_extensions|any(. == \"$EXTNAME\")" config.json`; then
echo "Skipping disabled extension ($EXTNAME)"
continue
fi
PYTHONPATH=${ROOT} python "$installscript"
done

Expand Down

0 comments on commit 630980b

Please sign in to comment.