-
Notifications
You must be signed in to change notification settings - Fork 1
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
Making custom nodes installable via pip #2
Comments
@yoland68 Could you help me check this out? |
@Chaoses-Ib There are already several efforts underway to do just this in ComfyUI core. My (completely unbiased, of course) preference is for comfyanonymous/ComfyUI#3608. In general, I do think it would be best to reuse as much of the existing Python machinery as possible, such as using the |
Nice PR. I know comfyanonymous/ComfyUI#298 has done something similar, but it has changed too many things and I'm afraid it'll never be merged. It'll be nice to see this kind of mechanism being merged one day.
I have the same idea. That's why I'm here to ask whether you are willing to add this. I think it will be easier to first add this to custom nodes instead of changing their project structure, since that will break the old and current version of ComfyUI. |
It would be nice to eventually have ComfyUI and custom nodes installable via pip. Right now there are a number of ways that deviate from the standard that are a bit confusing to get into. And maybe more importantly it causes a proliferation of ad-hoc solutions. |
I noticed that this project is adding
pyproject.toml
to a lot of custom nodes. I'd like to ask if you are also interested in making custom nodes installable via pip. I've done some research about this and found that by using some special options inpyproject.toml
, most custom nodes can be packaged and uploaded to PyPI without changing the project structure. Adding this to Comfy-PR should be simple since it's just adding more text topyproject.toml
and it's compatible with ComfyUI Registry.For example, adding the following content to a custom node:
Then the custom node can be installed via pip:
One problem with this is ComfyUI won't look up nodes installed via pip. This can be solved by installing a special custom node to loading them. This is already done in ComfyScript, but if you're interested, I can split the related code to a separate repo.
I've already done this change to some custom nodes, including:
The text was updated successfully, but these errors were encountered: