From 2864300a4e7ef27eaa3152ee2e94213a534f745a Mon Sep 17 00:00:00 2001 From: Devon Mackay Date: Tue, 10 Jul 2018 14:55:02 -0400 Subject: [PATCH] Add function for installing pip packages in the venv --- script/include/helper_functions.inc.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/script/include/helper_functions.inc.sh b/script/include/helper_functions.inc.sh index e24594c2..84792652 100644 --- a/script/include/helper_functions.inc.sh +++ b/script/include/helper_functions.inc.sh @@ -11,6 +11,14 @@ check_system_pip_for () { return $? } +pip_install () { + local packages="${1}" + local flags="${2}" + + run_command "pip install ${flags} ${packages}" + return $? +} + # Used whenever an environment sensitive command is being run run_command () { local cmd="${1}"