File tree Expand file tree Collapse file tree 4 files changed +29
-4
lines changed
Expand file tree Collapse file tree 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
3737call conda run -n crewai_env conda install -y packaging
3838call conda run -n crewai_env pip install -r requirements.txt
3939
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+ )
4046:: Check if .env file exists, if not copy .env_example to .env
4147if not exist " %SCRIPT_DIR% .env" (
4248 echo .env file does not exist. Copying .env_example to .env...
Original file line number Diff line number Diff line change 6464conda run -n crewai conda install -y packaging || { echo " Failed to install Conda packages" ; exit 1; }
6565conda run -n crewai pip install -r requirements.txt $USE_CACHE || { echo " Failed to install requirements" ; exit 1; }
6666
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
7074
7175# Check if .env file exists, if not copy .env_example to .env
7276if [ ! -f " $SCRIPT_DIR /.env" ]; then
Original file line number Diff line number Diff line change @@ -19,7 +19,15 @@ if %errorlevel% neq 0 (
1919 echo Failed to install requirements
2020 exit /b %errorlevel%
2121)
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+ )
2331:: Check if .env file exists, if not copy .env_example to .env
2432if not exist " %SCRIPT_DIR% .env" (
2533 echo .env file does not exist. Copying .env_example to .env...
Original file line number Diff line number Diff line change 4242# Install requirements
4343pip install -r requirements.txt $USE_CACHE || { echo " Failed to install requirements" ; exit 1; }
4444
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
4552# Check if .env file exists, if not copy .env_example to .env
4653if [ ! -f " $SCRIPT_DIR /.env" ]; then
4754 echo " .env file does not exist. Copying .env_example to .env..."
You can’t perform that action at this time.
0 commit comments