fix: install.py - install GitPython before install subpack

This commit is contained in:
Dr.Lt.Data
2024-01-01 10:06:46 +09:00
parent c4839a8b91
commit 5ff4b3f0bc
3 changed files with 10 additions and 8 deletions
+3 -1
View File
@@ -4,4 +4,6 @@ wildcards/**
.vscode/
.idea/
subpack
impact_subpack
impact_subpack
*.txt
*.yaml
+6 -6
View File
@@ -207,12 +207,6 @@ try:
except:
print(f"[ERROR] ComfyUI-Impact-Pack: failed to install 'opencv-python'. Please, install manually.")
try:
import git
except Exception:
if not is_installed('gitpython'):
process_wrap(pip_install + ['gitpython'])
def ensure_mmdet_package():
try:
import mmcv
@@ -232,6 +226,12 @@ try:
subpack_install_script = os.path.join(subpack_path, "install.py")
print(f"### ComfyUI-Impact-Pack: Updating subpack")
try:
import git
except Exception:
if not is_installed('GitPython'):
process_wrap(pip_install + ['GitPython'])
ensure_subpack() # The installation of the subpack must take place before ensure_pip. cv2 triggers a permission error.
if os.path.exists(subpack_install_script):
+1 -1
View File
@@ -2,7 +2,7 @@ import configparser
import os
version = "V4.56"
version = "V4.56.1"
dependency_version = 20