Installing¶
- Install sardana:
From easy_install [1]
easy_install -U sardana
From source code:
- Download the sardana source code:
- from latest stable version of sardana (1.6)
- from SVN snapshot
Extract the downloaded tar.gz into a temporary directory
type [2]
python setup.py build python setup.py install
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
Install all dependencies:
- from Python(x,y) (by far the easiest choise)
- Download and install a python 2.6/2.7 compatible version of python(x,y) from here
Download and install latest PyTango from PyTango downdoad page
Download and install latest taurus from Taurus downdoad page
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. |