X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/5c2e355aca8dd456a646e743652a1be87113113f..1416b0952adc0bfee85e15d9c86a51c32fcfd003:/build/run-library.sh diff --git a/build/run-library.sh b/build/run-library.sh index c5a73cbe35..8ba14949d3 100755 --- a/build/run-library.sh +++ b/build/run-library.sh @@ -20,17 +20,19 @@ debug_echo () { echo "$@" >"$STDOUT_IF_DEBUG" } -find_easy_install() { - for version_suffix in "$@"; do - if "easy_install$version_suffix" --version >/dev/null 2>&1; then - echo "easy_install$version_suffix" +find_python_program() { + prog="$1" + shift + for prog in "$@"; do + if "$prog" --version >/dev/null 2>&1; then + echo "$prog" return 0 fi done cat >&2 <