mirror of
https://github.com/Comfy-Org/ComfyUI-Manager.git
synced 2026-11-04 23:37:31 +00:00
[GH-ISSUE #38] [feature request] Pass extra args to install.py on update #23
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/ComfyUI-Manager#23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @melMass on GitHub (Jul 30, 2023).
Original GitHub issue: https://github.com/Comfy-Org/ComfyUI-Manager/issues/38
Hey data,
So now the recommended way to install mtb_nodes is through ComfyManager!
I think it's a better way overall and I wrote install.py in a way that can be used outside the manager too.
Because I have to ship wheels for comfy-embedded and colab I went this way:
requirements.txtso that the manager ignores it (I renamed it toreqs.txt).install.pyif the environment iscomfy-embedorcolabI first download and install the wheels from my releases (https://github.com/melMass/comfy_mtb/releases/tag/v0.1.3)install.pystill I runpip install -r reqs.txt(which will detect the previously installed wheels as installed and just install the remaining ones)Now the thing is about the manager's update, I can think of another way, but I was wondering if it would be possible to pass an extra argument to
install.pywhen updating. It could be either a flag (--upgrade,--update), a subcommand (install.py update) or maybe even more interesting the sha of the commit from which we are updating (install.py e6919a582a1f9b9b4f0f526d88bb8955d0d9747d)These are all just propositions and I'm not even sure they are good ideas, but I'm trying to find the best approach to handle the various systems for comfy_mtb requirements :)
@ltdrdata commented on GitHub (Jul 30, 2023):
https://github.com/ltdrdata/ComfyUI-Manager/tree/main/notebooks
https://github.com/ltdrdata/ComfyUI-Manager/blob/main/scripts/colab-dependencies.py
look aboves. My notebook provides automatic dependencies installation for installed nodes in colab startup.
I thinks this is better way for colab.
And Is there a specific reason to distinguish between upgrade situations and initial installation situations?
@melMass commented on GitHub (Jul 30, 2023):
Oh awesome, I will point that out in the instructions for Colab!
Mainly to be able to omit check based on updates (like pip checking requirements)
I'm currently changing a bit the install script to just use the individual wheels url that I pass directly to pip
@ltdrdata commented on GitHub (Jul 30, 2023):
In the case of updates, since they are typically one-time events, it might be best not to skip such actions. Especially when requirements vary across different versions, fragmenting the update logic for each version can be cumbersome. Safely checking all the dependencies required for the current version is considered desirable, ensuring a more consistent and reliable software experience.
@melMass commented on GitHub (Jul 30, 2023):
Ahhh yes true! I was still thinking about autoupdates so I thought this was ran on start my bad!
Then I think my new system will better fit and you are right it's not too long for a one-time event