X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/988181fdaf1485bea89445c1621f8344256ec707..24f90113a4e701f725229814ce5a36197306d059:/build/run-library.sh diff --git a/build/run-library.sh b/build/run-library.sh index 7dc293ab61..f8e5129dae 100755 --- a/build/run-library.sh +++ b/build/run-library.sh @@ -48,7 +48,6 @@ version_from_git() { # Output the version being built, or if we're building a # dev/prerelease, output a version number based on the git log for # the given $subdir. - local minorversion="$1"; shift # unused local subdir="$1"; shift if [[ -n "$ARVADOS_BUILDING_VERSION" ]]; then echo "$ARVADOS_BUILDING_VERSION" @@ -66,7 +65,7 @@ nohash_version_from_git() { echo "$ARVADOS_BUILDING_VERSION" return fi - version_from_git $1 | cut -d. -f1-4 + version_from_git | cut -d. -f1-4 } timestamp_from_git() { @@ -74,6 +73,18 @@ timestamp_from_git() { format_last_commit_here "%ct" "$subdir" } +calculate_python_sdk_cwl_package_versions() { + python_sdk_ts=$(cd sdk/python && timestamp_from_git) + cwl_runner_ts=$(cd sdk/cwl && timestamp_from_git) + + python_sdk_version=$(cd sdk/python && nohash_version_from_git) + cwl_runner_version=$(cd sdk/cwl && nohash_version_from_git) + + if [[ $python_sdk_ts -gt $cwl_runner_ts ]]; then + cwl_runner_version=$python_sdk_version + fi +} + handle_python_package () { # This function assumes the current working directory is the python package directory if [ -n "$(find dist -name "*-$(nohash_version_from_git).tar.gz" -print -quit)" ]; then @@ -127,7 +138,7 @@ calculate_go_package_version() { cd "$WORKSPACE" ts="$(timestamp_from_git "$dir")" if [[ "$ts" -gt "$timestamp" ]]; then - version=$(version_from_git "" "$dir") + version=$(version_from_git "$dir") timestamp="$ts" fi done @@ -563,7 +574,7 @@ fpm_build_virtualenv () { cd build/usr/share/$python/dist/$PYTHON_PKG/ # Replace the shebang lines in all python scripts, and handle the activate - # scripts too This is a functional replacement of the 237 line + # scripts too. This is a functional replacement of the 237 line # virtualenv_tools.py script that doesn't work in python3 without serious # patching, minus the parts we don't need (modifying pyc files, etc). for binfile in `ls bin/`; do @@ -621,7 +632,7 @@ fpm_build_virtualenv () { COMMAND_ARR+=('--rpm-auto-add-directories') fi - if [[ "$PKG" == "arvados-python-client" ]]; then + if [[ "$PKG" == "arvados-python-client" ]] || [[ "$PKG" == "arvados-fuse" ]]; then if [[ "$python" == "python2.7" ]]; then COMMAND_ARR+=('--conflicts' "$PYTHON3_PKG_PREFIX-$PKG") else