File tree 4 files changed +29
-4
lines changed
4 files changed +29
-4
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,12 @@ call conda create -n crewai_env python=3.11 -y
37
37
call conda run -n crewai_env conda install -y packaging
38
38
call conda run -n crewai_env pip install -r requirements.txt
39
39
40
+ :: Install agentops if requested
41
+ set /p install_agentops = " Do you want to install agentops? (y/n): "
42
+ if /i " %install_agentops% " == " y" (
43
+ echo Installing agentops...
44
+ call conda run -n crewai_env pip install agentops
45
+ )
40
46
:: Check if .env file exists, if not copy .env_example to .env
41
47
if not exist " %SCRIPT_DIR% .env" (
42
48
echo .env file does not exist. Copying .env_example to .env...
Original file line number Diff line number Diff line change 64
64
conda run -n crewai conda install -y packaging || { echo " Failed to install Conda packages" ; exit 1; }
65
65
conda run -n crewai pip install -r requirements.txt $USE_CACHE || { echo " Failed to install requirements" ; exit 1; }
66
66
67
- # Create the data folder if it doesn't exist
68
- DATA_DIR=" $SCRIPT_DIR /data"
69
- mkdir -p " $DATA_DIR "
67
+ # Agentops
68
+ echo " Do you want to install agentops? (y/n)"
69
+ read agentops
70
+ if [ " $agentops " == " y" ]; then
71
+ echo " Installing agentops..."
72
+ conda run -n crewai pip install agentops || { echo " Failed to install agentops" ; }
73
+ fi
70
74
71
75
# Check if .env file exists, if not copy .env_example to .env
72
76
if [ ! -f " $SCRIPT_DIR /.env" ]; then
Original file line number Diff line number Diff line change @@ -19,7 +19,15 @@ if %errorlevel% neq 0 (
19
19
echo Failed to install requirements
20
20
exit /b %errorlevel%
21
21
)
22
-
22
+ set /p install_agentops = " Do you want to install agentops? (y/n): "
23
+ if /i " %install_agentops% " == " y" (
24
+ echo Installing agentops...
25
+ pip install agentops
26
+ if %errorlevel% neq 0 (
27
+ echo Failed to install agentops
28
+ exit /b %errorlevel%
29
+ )
30
+ )
23
31
:: Check if .env file exists, if not copy .env_example to .env
24
32
if not exist " %SCRIPT_DIR% .env" (
25
33
echo .env file does not exist. Copying .env_example to .env...
Original file line number Diff line number Diff line change 42
42
# Install requirements
43
43
pip install -r requirements.txt $USE_CACHE || { echo " Failed to install requirements" ; exit 1; }
44
44
45
+ # agentops
46
+ echo " Do you want to install agentops? (y/n)"
47
+ read agentops
48
+ if [ " $agentops " == " y" ]; then
49
+ echo " Installing agentops..."
50
+ pip install agentops || { echo " Failed to install agentops" ; }
51
+ fi
45
52
# Check if .env file exists, if not copy .env_example to .env
46
53
if [ ! -f " $SCRIPT_DIR /.env" ]; then
47
54
echo " .env file does not exist. Copying .env_example to .env..."
You can’t perform that action at this time.
0 commit comments