From fbd7507af5df6699ee904489f34089e3381b6333 Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Wed, 4 Mar 2020 11:56:10 -0500 Subject: [PATCH] Only --rebuild on the first call to pip-compile --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2ad6d0c123..586ab8d884 100644 --- a/Makefile +++ b/Makefile @@ -85,10 +85,13 @@ REQ_FILES = \ upgrade: export CUSTOM_COMPILE_COMMAND=make upgrade upgrade: ## update the pip requirements files to use the latest releases satisfying our constraints pip install -qr requirements/edx/pip-tools.txt - @for f in $(REQ_FILES); do \ + @ export REBUILD='--rebuild'; \ + for f in $(REQ_FILES); do \ echo ; \ echo "== $$f ===============================" ; \ - pip-compile -v --no-emit-trusted-host --no-index --rebuild --upgrade -o $$f.txt $$f.in || exit 1; \ + echo "pip-compile -v --no-emit-trusted-host --no-index $$REBUILD --upgrade -o $$f.txt $$f.in"; \ + pip-compile -v --no-emit-trusted-host --no-index $$REBUILD --upgrade -o $$f.txt $$f.in || exit 1; \ + export REBUILD=''; \ done # Post process all of the files generated above to work around open pip-tools issues scripts/post-pip-compile.sh $(REQ_FILES:=.txt)