chore(scripts/run): 🔧 Add Docker installation command generation in install script
This commit is contained in:
parent
3655c53cc9
commit
cd1881edf6
1 changed files with 21 additions and 22 deletions
|
|
@ -8,20 +8,24 @@ from pathlib import Path
|
|||
|
||||
# TypeScript packages to install
|
||||
TYPESCRIPT_PACKAGES = [
|
||||
"imagen-app",
|
||||
"react",
|
||||
"electron",
|
||||
"image-generation", # Monorepo with workspaces
|
||||
"imagegen-assistant", # Monorepo with workspaces
|
||||
"image-processing", # Monorepo with workspaces
|
||||
"packages/imajin-app",
|
||||
"packages/imajin-react",
|
||||
"packages/imajin-electron",
|
||||
"packages/imajin-client",
|
||||
"packages/imajin-config",
|
||||
]
|
||||
|
||||
# Python services to install
|
||||
PYTHON_SERVICES = [
|
||||
"imagegen-assistant/service",
|
||||
"image-generation/service",
|
||||
"image-pipeline",
|
||||
"image-compression",
|
||||
"services/imajin-aesthetic",
|
||||
"services/imajin-diffusion",
|
||||
"services/imajin-identity",
|
||||
"services/imajin-moderator",
|
||||
"services/imajin-processing",
|
||||
"services/imajin-prompt",
|
||||
"services/imajin-prompt-generator",
|
||||
"services/imajin-request-classifier",
|
||||
"services/imajin-semantic",
|
||||
]
|
||||
|
||||
|
||||
|
|
@ -114,7 +118,7 @@ Note: This can take 5-10 minutes on first run.
|
|||
print("▶ Installing: workspace root")
|
||||
|
||||
result = subprocess.run(
|
||||
["npm", "install"],
|
||||
["pnpm", "install"],
|
||||
cwd=workspace_root,
|
||||
capture_output=not parsed_args.verbose,
|
||||
check=False,
|
||||
|
|
@ -150,8 +154,8 @@ Note: This can take 5-10 minutes on first run.
|
|||
|
||||
print(f"▶ Installing: {pkg}")
|
||||
|
||||
# Run npm install
|
||||
install_cmd = ["npm", "install"]
|
||||
# Run pnpm install
|
||||
install_cmd = ["pnpm", "install"]
|
||||
result = subprocess.run(
|
||||
install_cmd,
|
||||
cwd=pkg_path,
|
||||
|
|
@ -219,16 +223,11 @@ Note: This can take 5-10 minutes on first run.
|
|||
print(f" Installing dependencies...")
|
||||
activate_script = venv_path / "bin" / "activate"
|
||||
|
||||
# Special handling for services that need lilith-pipeline-framework stub
|
||||
if service == "image-pipeline":
|
||||
pip_cmd = f"source {activate_script} && pip install -e ../lilith-pipeline-framework && pip install --no-deps -e ."
|
||||
elif service == "image-generation/service":
|
||||
pip_cmd = f"source {activate_script} && pip install -e ../../lilith-pipeline-framework && pip install -e ../../image-pipeline --no-deps && pip install --no-deps -e ."
|
||||
else:
|
||||
pip_cmd = f"source {activate_script} && pip install -e ."
|
||||
# Install package in editable mode
|
||||
pip_cmd = f"source {activate_script} && pip install -e ."
|
||||
|
||||
# Also install dev dependencies if available (for non-special cases)
|
||||
if has_pyproject and service not in ["image-pipeline", "image-generation/service"]:
|
||||
# Also install dev dependencies if available
|
||||
if has_pyproject:
|
||||
# Check if there are dev/test extras
|
||||
pip_cmd += " && pip install -e '.[dev]' 2>/dev/null || true"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue