File: installation.rst

package info (click to toggle)
pycha 0.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 580 kB
  • ctags: 434
  • sloc: python: 3,642; makefile: 67
file content (95 lines) | stat: -rw-r--r-- 2,291 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
.. index:: pycha installation
.. _installation:

************
Installation
************

PyCha can be used on any system that supports `Python <http://www.python.org>`_
and `Cairo <http://www.cairographics.org/>`_.

.. index:: windows installation
.. _install-windows:

Windows
=======

Pycha needs PyCairo to works since it uses the Cairo graphics library. 
These are the recommended steps for installing PyCairo:

   1. Grab the latest `PyCairo Windows installer
   <http://ftp.gnome.org/pub/GNOME/binaries/win32/pycairo/>`_. You need to use
   the one that matches your Python version so take the one ending in -py2.4.exe
   for Python 2.4 or the one ending in -py2.5.exe for Python 2.5
   
   2. Install it in your Python environment (just follow the installation
   program instructions)
   
   3. Put the Cairo dlls inside the pycairo directory inside your site-packages
   directory or anywhere in your path. You can find the dlls `here
   <http://www.gimp.org/~tml/gimp/win32/downloads.html>`_. 
   Download the following packages:
   
   1. cairo.zip  (you just need libcairo-2.dll)
   2. libpng.zip (you just need libpng13.dll)
   3. zlib.zip   (you just need zlib1.dll)

Pycha is distributed as a Python Egg so it is easy to install. You just need to
type the following command:

    ``easy_install pycha``

.. index:: linux installation
.. _install-linux:

Linux
=====

There are three ways to install PyCha in Linux:


**Option A** (*good for new users*):

Use your distribution package system. 

Ubuntu example:

    ``sudo apt-get install python-pycha``
    
Benefits:

- better integration with your distribution

- it can be uninstalled easily

**Option B** (*good for python veterans*):

Use easy_install to get the latest official version. You need to
install the setuptools package to use easy_install.

Ubuntu example:

    ``apt-get install python-setuptools``
    
    ``easy_install pycha``
    
Fedora example:

    ``yum install python-setuptools``
    
    ``easy_install pycha``
    
Benefits: 

- you always get the latest stable version of PyCha

**Option C** (*good for PyCha developers*):

Get a checkout of the subversion trunk branch:

    ``svn co http://www.lorenzogil.com/svn/pycha/trunk pycha``

Benefits:

- this is the bleeding edge version of PyCha