Table Of Contents

Previous topic

Getting started

Next topic

Running Sardana as a tango server

This Page

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.2)
        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 from SVN

Warning

These instructions will become obsolete as soon as Sardana 1.2 is released because the code development will be moved from SVN to Git. Updated instructions for using Git will be posted ASAP.

You can checkout sardana from SVN from the following location:

svn co http://svn.code.sf.net/p/sardana/code/trunk Sardana

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

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.