From fed85dc789edf021248e4bdf4c9076d5ff9619bd Mon Sep 17 00:00:00 2001 From: Wouter Deconinck <wdconinc@gmail.com> Date: Tue, 14 Jun 2022 22:02:04 +0000 Subject: [PATCH] build_detector.sh: pip install requirements --- bin/build_detector.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/build_detector.sh b/bin/build_detector.sh index 8d1fb44..d952183 100755 --- a/bin/build_detector.sh +++ b/bin/build_detector.sh @@ -43,6 +43,9 @@ fi echo "git clone -b ${JUGGLER_DETECTOR_VERSION} --depth 1 https://eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git" git clone -b ${JUGGLER_DETECTOR_VERSION} --depth 1 https://${DEPLOY_TOKEN}eicweb.phy.anl.gov/EIC/detectors/${JUGGLER_DETECTOR}.git [[ "$?" == "0" ]] || exit 1 +if [ -f "${JUGGLER_DETECTOR}/requirements.txt" ] ; then + python -m pip install -r ${JUGGLER_DETECTOR}/requirements.txt +fi rm -rf "${JUGGLER_DETECTOR}/.git" ## We need an up-to-date copy of the detector -- GitLab