Installing

  1. Install sardana:
    1. From easy_install [1]

      easy_install -U sardana
      
    2. From source code:

      1. Download the sardana source code:
        1. from latest stable version of sardana (1.6)
        2. from SVN snapshot
      2. Extract the downloaded tar.gz into a temporary directory

      3. type [2]

        python setup.py build
        python setup.py install
        
  2. test the installation:

    python -c "import sardana; print sardana.Release.version"
    

You can also work from SVN trunk checkout (please look here for instructions).

Windows installation shortcut

This chapter provides a quick shortcut to all windows packages which are necessary to run sardana on your windows machine

  1. Install all dependencies:

    1. from Python(x,y) (by far the easiest choise)
      1. Download and install a python 2.6/2.7 compatible version of python(x,y) from here
    2. from scratch:
      1. Download and install PyQwt < 6.0 from PyQwt downdoad page
        1. Download and install compatible python from link in the same PyQwt page
        2. Download and install compatible numpy from link in the same PyQwt page.
        3. Download and install compatible PyQt from link in the same PyQwt page.
  2. Download and install latest PyTango from PyTango downdoad page

  3. Download and install latest taurus from Taurus downdoad page

  4. Finally download and install latest sardana from Sardana downdoad page

Working directly from Git

Sometimes it is convenient to work directly from the git source without installing. To do so, you can clone sardana from our main git repository:

git clone git://git.code.sf.net/p/sardana/sardana.git sardana

And then you can directly execute sardana binaries (Pool, MacroServer, Sardana or spock from the command line):

homer@pc001:~/workspace$ cd sardana
homer@pc001:~/workspace/sardana$ scripts/Sardana

Tip

If you plan to work normally from git without installing, you may want to add the sardana/scripts directory to your PATH variable and sardana/src to your PYTHONPATH variable.

Footnotes

[1]This command requires super user previledges on linux systems. If your user has them you can usually prefix the command with sudo: sudo easy_install -U sardana. Alternatively, if you don’t have administrator previledges, you can install locally in your user directory with: easy_install --user sardana In this case the executables are located at <HOME_DIR>/.local/bin. Make sure the PATH is pointing there or you execute from there.
[2]setup.py install requires user previledges on linux systems. If your user has them you can usually prefix the command with sudo: sudo python setup.py install. Alternatively, if you don’t have administrator previledges, you can install locally in your user directory with: python setup.py install --user In this case the executables are located at <HOME_DIR>/.local/bin. Make sure the PATH is pointing there or you execute from there.