[VOL-5358] - build & test repo using new AMI image
makefiles/virtualenv/virtualenv.mk
----------------------------------
o Install packages from requirements.txt as --no-cachedir.
o Install package wheel as a default (repo:voltha-prots and onu-adapter-go)
Signed-off-by: Joey Armstrong <jarmstrong@linuxfoundation.org>
Change-Id: I6597094539a7e13de05dafaec77f533b8a562df1
diff --git a/makefiles/virtualenv/virtualenv.mk b/makefiles/virtualenv/virtualenv.mk
index 9e4d457..5f69e82 100644
--- a/makefiles/virtualenv/virtualenv.mk
+++ b/makefiles/virtualenv/virtualenv.mk
@@ -54,7 +54,7 @@
$(call banner-enter,(virtualenv -p python))
virtualenv -p python3 $(venv-name)
$(activate) && python -m pip install --upgrade pip
- $(activate) && pip install --upgrade setuptools
+ $(activate) && pip install --upgrade setuptools wheel
@$(MAKE) --no-print-directory venv-requirements venv-version
$(call banner-leave,(virtualenv -t python))
@@ -69,7 +69,7 @@
$(venv-requirements-txt) : requirements.txt
- $(activate) && python -m pip install -r requirements.txt
+ $(activate) && python --no-cache-dir -m pip install -r requirements.txt
@mkdir -p $(dir $@)
@touch $@
@@ -91,7 +91,7 @@
@echo "============================="
virtualenv -p python3 $(venv-name)
$(activate) && python -m pip install --upgrade pip
- $(activate) && pip install --upgrade setuptools
+ $(activate) && pip install --upgrade setuptools wheel
$(activate) && [[ -r requirements.txt ]] \
&& { python -m pip install -r requirements.txt; } \
|| { /bin/true; }