mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-19 19:54:07 +00:00
24 lines
676 B
Python
24 lines
676 B
Python
"""Clone or update Bonsai external dependencies.
|
|
|
|
Must be run from the repository root.
|
|
"""
|
|
|
|
import subprocess
|
|
from pathlib import Path
|
|
|
|
DEPS = [
|
|
("https://projects.blender.org/pioverfour/sun_position.git", "sun_position"),
|
|
("https://github.com/kevancress/MeasureIt_ARCH", "MeasureIt_ARCH"),
|
|
("https://github.com/nortikin/sverchok.git", "sverchok"),
|
|
]
|
|
|
|
base = Path("src/bonsai/external_dependencies")
|
|
base.mkdir(parents=True, exist_ok=True)
|
|
|
|
for url, name in DEPS:
|
|
path = base / name
|
|
if not path.exists():
|
|
subprocess.check_call(["git", "clone", url, str(path)])
|
|
else:
|
|
subprocess.check_call(["git", "-C", str(path), "pull", "--rebase"])
|