diff --git a/Makefile b/Makefile index 6884c678b..62dfbc931 100644 --- a/Makefile +++ b/Makefile @@ -67,6 +67,7 @@ build: dependencies generate-version-file ## Build project .PHONY: build-codedeploy-artifact build-codedeploy-artifact: ## Build the deploy artifact for CodeDeploy + pip3 wheel --wheel-dir=wheelhouse -r requirements.txt mkdir -p target zip -r -x@deploy-exclude.lst target/notifications-api.zip * diff --git a/scripts/aws_install_dependencies.sh b/scripts/aws_install_dependencies.sh index b82881d45..03daadb21 100755 --- a/scripts/aws_install_dependencies.sh +++ b/scripts/aws_install_dependencies.sh @@ -5,4 +5,4 @@ set -eo pipefail echo "Install dependencies" cd /home/notify-app/notifications-api; -pip3 install -r /home/notify-app/notifications-api/requirements.txt +pip3 install --find-links=wheelhouse -r /home/notify-app/notifications-api/requirements.txt