2 # Copyright (C) The Arvados Authors. All rights reserved.
4 # SPDX-License-Identifier: AGPL-3.0
9 . /usr/local/lib/arvbox/common.sh
11 mkdir -p ~/.pip /var/lib/pip
12 cat > ~/.pip/pip.conf <<EOF
14 download_cache = /var/lib/pip
17 cd /usr/src/arvados/sdk/cli
18 run_bundler --binstubs=$PWD/binstubs
19 ln -sf /usr/src/arvados/sdk/cli/binstubs/arv /usr/local/bin/arv
23 # Need to install the upstream version of pip because the python-pip package
24 # shipped with Debian 9 is patched to change behavior in a way that breaks our
26 # See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876145
27 # When a non-root user attempts to install system packages, it makes the
28 # --ignore-installed flag the default (and there is no way to turn it off),
29 # this has the effect of making it very hard to share dependencies shared among
30 # multiple packages, because it will blindly install the latest version of each
31 # dependency requested by each package, even if a compatible package version is
33 if ! pip3 install --no-index --find-links /var/lib/pip pip==9.0.3 ; then
34 pip3 install pip==9.0.3
39 cd /usr/src/arvados/sdk/python
41 pip_install $(ls dist/arvados-python-client-*.tar.gz | tail -n1)
43 cd /usr/src/arvados/services/fuse
45 pip_install $(ls dist/arvados_fuse-*.tar.gz | tail -n1)
47 cd /usr/src/arvados/sdk/cwl
49 pip_install $(ls dist/arvados-cwl-runner-*.tar.gz | tail -n1)