Skip to content

fix: make pip install -e . work for ComfyUI portable users#155

Open
pydn wants to merge 2 commits intomainfrom
fix/pip-installable
Open

fix: make pip install -e . work for ComfyUI portable users#155
pydn wants to merge 2 commits intomainfrom
fix/pip-installable

Conversation

@pydn
Copy link
Copy Markdown
Owner

@pydn pydn commented Apr 19, 2026

Summary

  • Fix pip install -e . failing with "Multiple top-level packages discovered in a flat-layout" error for ComfyUI portable users
  • Add missing aiohttp dependency that's imported in __init__.py but only listed in requirements.txt

Changes

  • pyproject.toml: Added explicit [tool.setuptools.packages.find] section with include = ["comfyui_to_python*"] to prevent setuptools from discovering asset directories (js/, images/) as packages
  • pyproject.toml: Added aiohttp to project dependencies (was only in requirements.txt)
  • tests/test_project_contracts.py: Added 2 contract tests to verify both fixes and prevent regression

Validation

  • All 42 existing tests pass
  • pip install -e . succeeds in a clean venv with no errors
  • Installed package imports correctly

pydn added 2 commits April 19, 2026 10:11
Add explicit [tool.setuptools.packages.find] with include config to prevent
setuptools from discovering asset directories (js/, images/) as packages.
Also add missing aiohttp dependency imported in __init__.py.
aiohttp is imported in __init__.py but was missing from requirements.txt.
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