Spaces:
Runtime error
Runtime error
updates
Browse files
start.py
CHANGED
@@ -43,23 +43,15 @@ def start():
|
|
43 |
('git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"', olas_dir),
|
44 |
("git remote update", olas_dir),
|
45 |
("git fetch --all", olas_dir),
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
commands.append(("git checkout fix/mech-packages", olas_dir))
|
52 |
-
commands.append(("git pull origin fix/mech-packages", olas_dir))
|
53 |
-
else:
|
54 |
-
print("'fix/mech-packages' branch not found on the remote repository.")
|
55 |
-
commands.append(("git checkout main", mech_dir))
|
56 |
-
commands.append(("git pull origin main", mech_dir))
|
57 |
-
|
58 |
-
commands.extend([
|
59 |
("pip install -e .", os.path.join(olas_dir, "benchmark")),
|
60 |
("pip install -e .", mech_dir),
|
61 |
-
("pip install lxml[html_clean]", base_dir)
|
62 |
-
]
|
63 |
|
64 |
for command, cwd in commands:
|
65 |
run_command(command, cwd=cwd)
|
|
|
43 |
('git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"', olas_dir),
|
44 |
("git remote update", olas_dir),
|
45 |
("git fetch --all", olas_dir),
|
46 |
+
("git show-ref --verify --quiet \"refs/remotes/origin/fix/mech-packages\"", olas_dir),
|
47 |
+
("git checkout fix/mech-packages", olas_dir),
|
48 |
+
("git pull origin fix/mech-packages", olas_dir),
|
49 |
+
("git checkout main", mech_dir),
|
50 |
+
("git pull origin main", mech_dir),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
51 |
("pip install -e .", os.path.join(olas_dir, "benchmark")),
|
52 |
("pip install -e .", mech_dir),
|
53 |
+
("pip install lxml[html_clean]", base_dir),
|
54 |
+
]
|
55 |
|
56 |
for command, cwd in commands:
|
57 |
run_command(command, cwd=cwd)
|