Skip to content

Conversation

ltdrdata
Copy link
Member

@ltdrdata ltdrdata commented Oct 3, 2025

Add comprehensive pip dependency conflict resolution framework as draft implementation. This is self-contained and does not affect existing ComfyUI Manager functionality.

Key components:

  • pip_util.py with PipBatch class for policy-driven package management
  • Lazy-loaded policy system supporting base + user overrides
  • Multi-stage policy execution (uninstall → apply_first_match → apply_all_matches → restore)
  • Conditional policies based on platform, installed packages, and ComfyUI version
  • Comprehensive test suite covering edge cases, workflows, and platform scenarios
  • Design and implementation documentation

Policy capabilities (draft):

  • Package replacement (e.g., PIL → Pillow, opencv-python → opencv-contrib-python)
  • Version pinning to prevent dependency conflicts
  • Dependency protection during installations
  • Platform-specific handling (Linux/Windows, GPU detection)
  • Pre-removal and post-restoration workflows

Testing infrastructure:

  • Pytest-based test suite with isolated environments
  • Dependency analysis tools for conflict detection
  • Coverage for policy priority, edge cases, and environment recovery

Status: Draft implementation complete, integration with manager workflows pending.

Add comprehensive pip dependency conflict resolution framework as draft implementation. This is self-contained and does not affect existing
ComfyUI Manager functionality.

Key components:
- pip_util.py with PipBatch class for policy-driven package management
- Lazy-loaded policy system supporting base + user overrides
- Multi-stage policy execution (uninstall → apply_first_match → apply_all_matches → restore)
- Conditional policies based on platform, installed packages, and ComfyUI version
- Comprehensive test suite covering edge cases, workflows, and platform scenarios
- Design and implementation documentation

Policy capabilities (draft):
- Package replacement (e.g., PIL → Pillow, opencv-python → opencv-contrib-python)
- Version pinning to prevent dependency conflicts
- Dependency protection during installations
- Platform-specific handling (Linux/Windows, GPU detection)
- Pre-removal and post-restoration workflows

Testing infrastructure:
- Pytest-based test suite with isolated environments
- Dependency analysis tools for conflict detection
- Coverage for policy priority, edge cases, and environment recovery

Status: Draft implementation complete, integration with manager workflows pending.
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedmypy@​1.18.282100100100100
Addedurllib3@​1.26.1596100100100100
Addedblack@​25.9.098100100100100
Addedcertifi@​2023.7.2210010010010070
Addedresponses@​0.25.899100100100100
Addedpackaging@​25.099100100100100
Addedpackaging@​23.199100100100100
Addedcharset-normalizer@​3.2.0100100100100100
Addedattrs@​23.1.0100100100100100
Addedflake8@​7.3.0100100100100100
Addedsix@​1.16.0100100100100100
Addedpytest-mock@​3.15.1100100100100100
Addedfreezegun@​1.5.5100100100100100

View full report

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.

1 participant