- python_sdk_ts=$(cd sdk/python && timestamp_from_git)
- cwl_runner_ts=$(cd sdk/cwl && timestamp_from_git)
- build_ts=$(cd build && timestamp_from_git version-at-commit.sh)
-
- ar=($python_sdk_ts $cwl_runner_ts $build_ts)
- OLDIFS=$IFS
- IFS=$'\n'
- max=`echo "${ar[*]}" | sort -nr | head -n1`
- IFS=$OLDIFS
-
- python_sdk_version=$(cd sdk/python && nohash_version_from_git)
- cwl_runner_version=$(cd sdk/cwl && nohash_version_from_git)
- build_version=$(cd build && nohash_version_from_git version-at-commit.sh)
-
- if [[ $max -eq $build_ts ]]; then
- cwl_runner_version=$build_version
- elif [[ $max -eq $python_sdk_ts ]]; then
- cwl_runner_version=$python_sdk_version
- fi
+ python_sdk_version=$(cd sdk/python && python3 arvados_version.py)
+ cwl_runner_version=$(cd sdk/cwl && python3 arvados_version.py)