From c5d2023de2f038cb865a148076a4dc4ec24efaf7 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 17 May 2021 10:38:36 +0200 Subject: [PATCH] add setup_lib_py2.sh for python2 --- build/local/setup_lib_py2.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 build/local/setup_lib_py2.sh diff --git a/build/local/setup_lib_py2.sh b/build/local/setup_lib_py2.sh new file mode 100755 index 0000000..c037a26 --- /dev/null +++ b/build/local/setup_lib_py2.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +# Exit when any command fails +# We need to stop build if pip fails +set -e + +for module in `ls /srv/lib/`; do + cd /srv/lib/$module + if [ -f 'requirements.txt' ]; then + pip install -r requirements.txt + elif [ -f 'setup.py' ]; then + pip install -e . + fi +done -- 2.39.5