-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
37 lines (32 loc) · 1.24 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
dev-local-pip: init-env install-agentc-pip post-install
dev-local-poetry: init-env install-agentc-poetry post-install
# To install agentc in any project, given that the clone
# of agent-catalog and project directory have common parent
AGENT_CATALOG_LIBS = ../agent-catalog/libs
init-env:
@echo "----Creating Conda Environment----"
conda create -n $(or $(env_name),agentc_env) python=3.12 -y
install-agentc-pip:
@echo "----Installing Agentc----"
@echo "This may take some time..."
conda run -n $(or $(env_name),agentc_env) bash -c "\
pip install $(AGENT_CATALOG_LIBS)/agentc && \
echo '' && \
echo '----Verifying Installation----' && \
pip list | grep agentc && \
echo '' && \
echo '----agentc Usage----' && \
agentc --help"
install-agentc-poetry:
@echo "----Installing Agentc----"
@echo "This may take some time..."
conda run -n $(or $(env_name),agentc_env) bash -c "\
poetry install && \
echo '' && \
echo '----Verifying Installation----' && \
pip list | grep agentc && \
echo '' && \
echo '----agentc Usage----' && \
agentc --help"
post-install:
@echo "Note: Please run 'conda deactivate', followed by 'conda activate $(or $(env_name),agentc_env)' to activate your python env and run agentc commands"