X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/72bd39971753efa7e951b945d07e8d9704a07221..58a026e09bda4c1e2374347615c325007c64fac4:/build/run-build-packages.sh diff --git a/build/run-build-packages.sh b/build/run-build-packages.sh index 61dc07e4ae..caebac013d 100755 --- a/build/run-build-packages.sh +++ b/build/run-build-packages.sh @@ -438,8 +438,30 @@ if [[ "$?" == "0" ]]; then fpm_build $WORKSPACE/tools/crunchstat-summary ${PYTHON2_PKG_PREFIX}-crunchstat-summary 'Curoverse, Inc.' 'python' "$crunchstat_summary_version" "--url=https://arvados.org" "--description=Crunchstat-summary reads Arvados Crunch log files and summarize resource usage" --iteration "$iteration" fi -## if libcloud becomes our own fork see -## https://dev.arvados.org/issues/12268#note-27 +# Forked libcloud +if test_package_presence "$PYTHON2_PKG_PREFIX"-apache-libcloud "$LIBCLOUD_PIN" python 2 +then + LIBCLOUD_DIR=$(mktemp -d) + ( + cd $LIBCLOUD_DIR + git clone $DASHQ_UNLESS_DEBUG https://github.com/curoverse/libcloud.git . + git checkout $DASHQ_UNLESS_DEBUG apache-libcloud-$LIBCLOUD_PIN + # libcloud is absurdly noisy without -q, so force -q here + OLD_DASHQ_UNLESS_DEBUG=$DASHQ_UNLESS_DEBUG + DASHQ_UNLESS_DEBUG=-q + handle_python_package + DASHQ_UNLESS_DEBUG=$OLD_DASHQ_UNLESS_DEBUG + ) + + # libcloud >= 2.3.0 now requires python-requests 2.4.3 or higher, otherwise + # it throws + # ImportError: No module named packages.urllib3.poolmanager + # when loaded. We only see this problem on ubuntu1404, because that is our + # only supported distribution that ships with a python-requests older than + # 2.4.3. + fpm_build $LIBCLOUD_DIR "$PYTHON2_PKG_PREFIX"-apache-libcloud "" python "" --iteration 2 --depends 'python-requests >= 2.4.3' + rm -rf $LIBCLOUD_DIR +fi # Python 2 dependencies declare -a PIP_DOWNLOAD_SWITCHES=(--no-deps)