Skip to content

Commit 9e07d8f

Browse files
update makefile to setup os world development.
1 parent a8b29cc commit 9e07d8f

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

Makefile

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: test setup miniwob lint stop-miniwob
1+
.PHONY: test setup miniwob lint stop-miniwob osworld
22

33
setup:
44
@pip install -e .
@@ -30,3 +30,23 @@ test: setup miniwob check-miniwob run-tests stop-miniwob
3030
lint: setup
3131
@black src/ --check --diff
3232
@darglint -v 2 -z short src/
33+
34+
osworld:
35+
@echo "Setting up OSWorld..."
36+
@git clone https://github.com/xlang-ai/OSWorld || true
37+
@echo "Modifying OSWorld requirements.txt to remove pinned versions..."
38+
@cd OSWorld && \
39+
sed -i.bak 's/numpy~=.*/numpy/' requirements.txt && \
40+
sed -i.bak 's/torch~=.*/torch/' requirements.txt && \
41+
sed -i.bak 's/torch$$/torch/' requirements.txt && \
42+
sed -i.bak 's/tqdm~=.*/tqdm/' requirements.txt && \
43+
sed -i.bak 's/pandas~=.*/pandas/' requirements.txt
44+
@echo "Installing OSWorld requirements..."
45+
@cd OSWorld && pip install -r requirements.txt
46+
@echo "Installing OSWorld in development mode..."
47+
@cd OSWorld && pip install -e .
48+
@echo "OSWorld setup completed!"
49+
@echo "Next steps:"
50+
@echo "1. Configure your VM (VMware/VirtualBox) according to OSWorld documentation"
51+
@echo "2. Download or set up the Ubuntu VM image"
52+
@echo "3. Run AgentLab with OSWorld tasks"

0 commit comments

Comments
 (0)