Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify installation extension dependencies #518

Merged
merged 3 commits into from Jun 25, 2023
Merged

Modify installation extension dependencies #518

merged 3 commits into from Jun 25, 2023

Conversation

KagurazakaNyaa
Copy link
Contributor

Perform a full extension installation process instead of just installing dependencies
Some extensions do not include requirements.txt but install dependencies in install.py, and all extensions include install.py, so it is safe to use it for extended dependency installation
This is because the extension development of AUTOMATIC1111's webui does not require the existence of requirements.txt but uses install.py to initialize the extension
https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Developing-extensions#installpy

Perform a full extension installation process instead of just installing dependencies
Copy link
Owner

@AbdBarho AbdBarho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, could you please increase the version of auto's image by 1 in the docker compose file?

pip install -r "$req"
list=(./extensions/*/install.py)
for installscript in "${list[@]}"; do
PYTHONPATH=${ROOT} python "$installscript"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is the PYTHONPATH necessary?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh I see, it is here: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Developing-extensions#installpy

Would be great if you could add this as a comment

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, from the results of my test, PYTHONPATH is necessary, otherwise some modules provided by the webui project will not be found correctly

Copy link
Owner

@AbdBarho AbdBarho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@AbdBarho AbdBarho merged commit 6365811 into AbdBarho:master Jun 25, 2023
4 checks passed
@KagurazakaNyaa KagurazakaNyaa deleted the patch-1 branch June 25, 2023 11:03
sf666 added a commit to sf666/sd that referenced this pull request Jul 3, 2023
* Abd_master:
  Auto 1.4.0 (AbdBarho#507)
  Bump auto
  Add build-essential package (AbdBarho#522)
  Allow setting port through env WEBUI_PORT (AbdBarho#521)
  Create dirs if not exist (AbdBarho#520)
  Modify installation extension dependencies (AbdBarho#518)
  v8 (AbdBarho#516)

# Conflicts:
#	data/.gitignore
#	docker-compose.yml
cloudaxes pushed a commit to cloudaxes/stable-diffusion-webui-docker that referenced this pull request Sep 6, 2023
Perform a full extension installation process instead of just installing
dependencies
Some extensions do not include `requirements.txt` but install
dependencies in `install.py`, and all extensions include `install.py`,
so it is safe to use it for extended dependency installation
This is because the extension development of AUTOMATIC1111's webui does
not require the existence of `requirements.txt` but uses `install.py` to
initialize the extension

https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Developing-extensions#installpy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants