You are here: Home / Devel Env / Bazaar / Installer


Custom Bazaar install

Downloading the files

While most ABINIT committers have access to a GNU/Linux-compatible system, some do not. For them, we provide the software packages they will need to fully participate to the ongoing development efforts, as well as an installer script. If this is your case, please download the following 7 files and put them all in a temporary directory. Please right-click on each of the links below and select "Save link as..." in your browser menu. Pointers to the home pages of the packages are provided for the curious.

  1. Bazaar installer script
  2. Python Element Tree (Home page)
  3. Python C Element Tree (Home page)
  4. PyCrypto (Home page)
  5. Paramiko (Home page)
  6. Bazaar (Home page)
  7. BzrTools (Home page)

You may also want to install some optional packages if you have access to a graphical environment:

  1. BzrGtk (Home page) — Note: requires Seahorse
  2. QBzr (Home page)

Running the installer script

In the following we will suppose that you want to install them into a $HOME/bazaar directory and that you have a working C compiler. First, go to the temporary directory where you have just downloaded all the previous files and type:

    /bin/sh bzr-install $HOME/bazaar

The script will build and install all required packages in the right order. The build will take between 30 seconds and 3 minutes, depending on the age of your machine. The installed packages themselves will only require 15 Mb of disk space. At the end of the process, the installer script will give you some instructions. Please follow them carefully.

Once you are done with the installer, and if everything went fine, you may safely remove the temporary directory. However, you will be able to use these tools only if your PATH and PYTHONPATH environment variables contain respectively $HOME/bazaar/bin before all other paths, and $HOME/bazaar/lib. To be sure that this is always the case, please add the following lines to the config file of your login shell:

    PATH="${HOME}/bazaar/bin:${PATH}"; export PATH
    MANPATH="${HOME}/bazaar/man:${MANPATH}"; export MANPATH
    PYTHONPATH="${HOME}/bazaar/lib:${PATH}"; export PYTHONPATH

for a Bourne-like shell, and

    setenv PATH "${HOME}/bazaar/bin:${PATH}"
    setenv MANPATH "${HOME}/bazaar/man:${MANPATH}"
    setenv PYTHONPATH "${HOME}/bazaar/lib:${PYTHONPATH}"

for a C-like shell.

You will then be able to use Bazaar from your next login on. It will serve you well for a while.

Final remark: this combination of versions has been tested on the oldest and least standard machine we could find. Though we cannot guarantee that this package set will work in all situations, we are quite confident that it will perform well in most cases.


If the installer script fails during preliminary checks, you may try to run it from the Bourne-Again SHell (BASH):

    bash bzr-install $HOME/bazaar

Problems should be reported to Yann Pouillon.