[ARVADOS] updated: 1.2.0-85-gb5f589dce
Git user
git at public.curoverse.com
Wed Sep 19 16:25:51 EDT 2018
Summary of changes:
build/run-build-packages.sh | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
via b5f589dce8110139073388f11f1ed2259e272a96 (commit)
from 05729d26f0d71620bb7151b443f628a92d3ec78d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit b5f589dce8110139073388f11f1ed2259e272a96
Author: Ward Vandewege <wvandewege at veritasgenetics.com>
Date: Wed Sep 19 16:06:50 2018 -0400
Fix package building - support modern versions of pip.
No issue #
Arvados-DCO-1.1-Signed-off-by: Ward Vandewege <wvandewege at veritasgenetics.com>
diff --git a/build/run-build-packages.sh b/build/run-build-packages.sh
index 9ffa20fe6..88466bd37 100755
--- a/build/run-build-packages.sh
+++ b/build/run-build-packages.sh
@@ -465,7 +465,7 @@ fi
# Python 2 dependencies
declare -a PIP_DOWNLOAD_SWITCHES=(--no-deps)
# Add --no-use-wheel if this pip knows it.
-pip wheel --help >/dev/null 2>&1
+pip install --no-use-wheel >/dev/null 2>&1
case "$?" in
0) PIP_DOWNLOAD_SWITCHES+=(--no-use-wheel) ;;
2) ;;
@@ -529,7 +529,12 @@ while read -r line || [[ -n "$line" ]]; do
pyfpm_workdir=$(mktemp --tmpdir -d pyfpm-XXXXXX) && (
set -e
cd "$pyfpm_workdir"
- pip install "${PIP_DOWNLOAD_SWITCHES[@]}" --download . "$name==$version"
+ PIP_VERSION=`python$PYTHON2_VERSION -c "import pip; print(pip.__version__)" |cut -f1 -d.`
+ if (( $PIP_VERSION < 8 )); then
+ pip install "${PIP_DOWNLOAD_SWITCHES[@]}" --download . "$name==$version"
+ else
+ pip download --no-deps --no-binary :all: "$name==$version"
+ fi
# Sometimes pip gives us a tarball, sometimes a zip file...
DOWNLOADED=`ls $name-*`
[[ "$DOWNLOADED" =~ ".tar" ]] && tar -xf $DOWNLOADED
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list