fix(launch): add --no-build-isolation to open_clip and requirements installs#17371
Open
lfl1337 wants to merge 1 commit intoAUTOMATIC1111:devfrom
Open
fix(launch): add --no-build-isolation to open_clip and requirements installs#17371lfl1337 wants to merge 1 commit intoAUTOMATIC1111:devfrom
lfl1337 wants to merge 1 commit intoAUTOMATIC1111:devfrom
Conversation
…nstalls Commit 76759a1 added --no-build-isolation to the clip install to fix BackendUnavailable errors with pip 26+ on embedded/portable Python environments, but the same flag was missing from open_clip and the requirements installs. open_clip (GitHub ZIP) and jsonmerge (in requirements_versions.txt) are source distributions that pip must build. With pip 26+, the isolated build environment fails to import setuptools.build_meta, causing: BackendUnavailable: Cannot import 'setuptools.build_meta' Adding --no-build-isolation to these calls mirrors the existing fix for clip and allows pip to use the already-installed setuptools (69.5.1, pinned in requirements_versions.txt) directly. Fixes startup failures on portable/embedded Python 3.10.6 installs (e.g. sd.webui one-click package) with pip 26+. Related: AUTOMATIC1111#17201 AUTOMATIC1111#17284 AUTOMATIC1111#17287 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What was changed?
Added
--no-build-isolationto theopen_clipandrequirementspip install calls inprepare_environment(), mirroring the existing flag already applied toclip.Why?
Commit 76759a1 fixed CLIP installation failures (#17201, #17284, #17287) by adding
--no-build-isolationto theclipinstall. The same flag was missing from two other install calls in the same block:open_clip— installed from a GitHub ZIP (source distribution)requirements_versions.txt— containsjsonmerge==1.8.0(source distribution, no binary wheel)With pip 26+, the isolated build environment fails to import
setuptools.build_metafor source distributions:This causes a complete startup failure on portable/embedded Python 3.10.6 environments (e.g. the sd.webui one-click package) after pip auto-updates to 26+.
Using
--no-build-isolationlets pip use the already-installedsetuptools==69.5.1(pinned as line 1 ofrequirements_versions.txt) directly, avoiding the broken isolated build environment.How to reproduce
get-pip.py)run.bat— startup fails withBackendUnavailable: Cannot import 'setuptools.build_meta'How to test
Run
run.baton a portable sd.webui installation with pip 26+ — startup completes successfully.Checklist