Skip to content

Commit

Permalink
source with dot replaced. Py venv errors processing added (#277)
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Gorbuntsov <[email protected]>
  • Loading branch information
bgorbuntsov and Boris Gorbuntsov authored Nov 28, 2024
1 parent 1fab01d commit 983133f
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,18 @@ dir_name=$function_name/
mkdir -p $path_cwd/build/$dir_name

# Create and activate virtual environment...
python3 -m venv $path_cwd/build/env_$function_name
source $path_cwd/build/env_$function_name/bin/activate
if ! python3 -m venv $path_cwd/build/env_$function_name; then
echo "Error: Python virtual environment creation failed"
exit 1
else
echo "Python virtual environment created"
fi
if ! . $path_cwd/build/env_$function_name/bin/activate; then
echo "Error: Python virtual environment activation failed"
exit 1
else
echo "Python virtual environment activated"
fi

# Installing python dependencies...
FILE=$path_cwd/lambda_code/$function_name/requirements.txt
Expand Down

0 comments on commit 983133f

Please sign in to comment.