Variable for installing python requirements with/without no-cache-dir
@@ -7,6 +7,7 @@ LN := ln -sf
CMAKE := cmake
PIP_USER_FLAG = --user
PIP_INSTALL_REQUIREMENTS := pip3 install -Ir
+NO_CACHE_DIR := --no-cache-dir
PYTHON_BUILD_PACKAGE = python3 setup.py build -b ../$(PYTHON_BUILD_DIR)
RM_DIR := rm -r
RM_FILE := rm
@@ -237,11 +238,11 @@ python_build : $(PYTHON_SETUP_FILE)
# install python requirements without --user
python_requirements : $(PYTHON_REQUIREMENTS_FILE)
- $(PIP_INSTALL_REQUIREMENTS) $(PYTHON_REQUIREMENTS_FILE) --no-cache-dir
+ $(PIP_INSTALL_REQUIREMENTS) $(PYTHON_REQUIREMENTS_FILE) $(NO_CACHE_DIR)
# install python requirements for user
python_requirements_user : $(PYTHON_REQUIREMENTS_FILE)
- $(PIP_INSTALL_REQUIREMENTS) $(PYTHON_REQUIREMENTS_FILE) $(PIP_USER_FLAG) --no-cache-dir
+ $(PIP_INSTALL_REQUIREMENTS) $(PYTHON_REQUIREMENTS_FILE) $(PIP_USER_FLAG) $(NO_CACHE_DIR)
# create python install dir
$(PYTHON_INSTALL_DIR) :
