From 57180ab0f264828593348050e774898b953bc5f2 Mon Sep 17 00:00:00 2001 From: Joe Garcia <joe.garcia@ssec.wisc.edu> Date: Mon, 17 Feb 2014 18:19:23 -0600 Subject: [PATCH] safety installing unzipped version of eggs --- ShellB3/shallbethree.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ShellB3/shallbethree.sh b/ShellB3/shallbethree.sh index 4cb5ac0c..865b2972 100755 --- a/ShellB3/shallbethree.sh +++ b/ShellB3/shallbethree.sh @@ -2253,11 +2253,11 @@ scan_elfs() { } bundle_bins() { - for f in $( find lib* Library -name "*.egg" -type f | grep $( uname -m ) ) ; do #unzip any binary installed egg so we can repath - mv "$f" "$(basename "$f")" - bin/easy_install -Z "$(basename "$f")" #FIXME get version number of easy_install for py3 systems - rm -f "$(basename "$f")" - done + if [ -e bin/easy_install ] ; then + for f in $( find lib* Library -name "*.egg" -type f | grep $( uname -m ) ) ; do #unzip any binary installed egg so we can repath + mv "$f" "$(basename "$f")" && bin/easy_install -Z "$(basename "$f")" && rm -f "$(basename "$f")" + done + fi case "$(uname -s)" in Darwin) ( mk_macholib && bundle_machos ) || oops "Bundle failed" -- GitLab