root/gaphor/tags/release-0.10.0/HACKING

Revision 1172, 1.3 kB (checked in by wrobell, 2 years ago)

- added info about fetching and installing deps

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1 Feel free to hack Gaphor. Patches are welcome.
2
3 Fetching Development Dependencies
4 =================================
5
6 Gaphor uses Easy Install to manage in easy way its dependencies.
7
8 To fetch and install dependencies as non-root user
9  
10 1. Create ~/.pydistutils.cfg file
11
12     [install]
13     install_lib = ~/opt/share/python2.5/site-packages
14     install_scripts = ~/opt/bin
15
16 2. Create (or extend) PYTHONPATH variable
17
18     export PYTHONPATH=~/opt/share/python2.5/site-packages
19
20 3. Run setup.py script to fetch and install dependencies
21
22     python setup.py develop
23
24 Prefix ~/opt can be changed to something more suitable for your setup.
25
26
27 Above is based on
28
29     http://peak.telecommunity.com/DevCenter/EasyInstall#traditional-pythonpath-based-installation
30
31
32 Structure
33 =========
34
35 Gaphor contains the following modules:
36
37 UML
38 ---
39 The UML module contains the UML 2.0 data model. This part is
40 quite stable and it is unlikely that code has to be changed
41 here.
42
43   NOTE: The code is generated from a Gaphor model: uml2.gaphor. This
44         file can be loaded in gaphor.
45
46 diagram
47 -------
48 The diagram module contains items that can be placed in diagrams.
49 In most cases the classes NamedItem and Relationship can serve
50 as bases for your class.
51
52 ui
53 --
54 The user interface. This is where most of the work is to be done.
55
56 misc
57 ----
58 Some utility stuff, such as Actions and aspects are put in here.
59
Note: See TracBrowser for help on using the browser.