X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/964ab3dd90ff1508efc0c77378cde2b3a4da1029..ff31ac17e296f6a35e1d96f31af8061f7102c797:/sdk/python/README.rst diff --git a/sdk/python/README.rst b/sdk/python/README.rst index 10e01a4c54..b5883a4ab7 100644 --- a/sdk/python/README.rst +++ b/sdk/python/README.rst @@ -1,3 +1,7 @@ +.. Copyright (C) The Arvados Authors. All rights reserved. +.. +.. SPDX-License-Identifier: Apache-2.0 + ===================== Arvados Python Client ===================== @@ -18,36 +22,67 @@ Installation Installing under your user account ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -This method lets you install the package without root access. -However, other users on the same system won't be able to use it. +This method lets you install the package without root access. However, +other users on the same system will need to reconfigure their shell in order +to be able to use it. Run the following to install the package in an +environment at ``~/arvclients``:: + + python3 -m venv ~/arvclients + ~/arvclients/bin/pip install arvados-python-client + +Command line tools will be installed under ``~/arvclients/bin``. You can +test one by running:: + + ~/arvclients/bin/arv-get --version + +You can run these tools by specifying the full path every time, or you can +add the directory to your shell's search path by running:: + + export PATH="$PATH:$HOME/arvclients/bin" -1. Run ``pip install --user arvados-python-client``. +You can make this search path change permanent by adding this command to +your shell's configuration, for example ``~/.bashrc`` if you're using bash. +You can test the change by running:: -2. In your shell configuration, make sure you add ``$HOME/.local/bin`` - to your PATH environment variable. For example, you could add the - command ``PATH=$PATH:$HOME/.local/bin`` to your ``.bashrc`` file. + arv-get --version -3. Reload your shell configuration. For example, bash users could run - ``source ~/.bashrc``. +Installing on Debian and Ubuntu systems +~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -Installing on Debian systems -~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +Arvados publishes packages for Debian 11 "bullseye," Debian 12 "bookworm," Ubuntu 20.04 "focal," and Ubuntu 22.04 "jammy." You can install the Python SDK package on any of these distributions by running the following commands:: -1. Add this Arvados repository to your sources list:: + sudo install -d /etc/apt/keyrings + sudo curl -fsSL -o /etc/apt/keyrings/arvados.asc https://apt.arvados.org/pubkey.gpg + sudo tee /etc/apt/sources.list.d/arvados.sources >/dev/null </dev/null <`_ describes how to find this information in the Arvados Workbench, and install it @@ -59,5 +94,5 @@ Testing and Development This package is one part of the Arvados source package, and it has integration tests to check interoperability with other Arvados components. Our `hacking guide -`_ +`_ describes how to set up a development environment and run tests.