First, install DataONE Common Library for Python according to the instructions in the documentation for that project. It is a dependency of DataONE Client Library for Python.
The distribution of DataONE Common Library for Python is best installed using easy_install.
$ sudo easy_install DataONE_ClientLib
The distribution of DataONE Common Library for Python is currently
Subversion based. This makes it easy to keep up to date with changes. A package will be released at some point in the future once things stabilize a bit.
Install Subversion:
$ sudo apt-get install subversion
To set the library up in /var/local/dataone/d1_client_python using Bash (which is often the default shell):
$ sudo -s
# cd /var/local/dataone
# svn co https://repository.dataone.org/software/cicore/trunk/d1_libclient_python d1_libclient_python
# cd d1_libclient_python/src/
# python setup.py develop
To update your copy of the library:
$ cd /var/local/dataone/d1_client_python
$ svn update