| 1 |
Dabo - Some brief installation notes. |
|---|
| 2 |
|
|---|
| 3 |
PREREQUISITES: |
|---|
| 4 |
+ Python (we recommend the latest, currently 2.4.x) |
|---|
| 5 |
+ MySQLdb (to run the demos) |
|---|
| 6 |
+ wxPython (we recommend the latest, currently 2.6.x) |
|---|
| 7 |
+ reportlab |
|---|
| 8 |
|
|---|
| 9 |
INSTALLATION: |
|---|
| 10 |
As root or administrator, execute the following shell command: |
|---|
| 11 |
python setup.py install |
|---|
| 12 |
|
|---|
| 13 |
That's it! |
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
PRIOR INSTRUCTIONS (OUT OF DATE) |
|---|
| 18 |
Dabo is a runtime library, which your applications will import using standard |
|---|
| 19 |
Python syntax. Therefore, it needs to be in PYTHONPATH, so that your |
|---|
| 20 |
'import dabo' statements will find it. The easiest way to do this is to put |
|---|
| 21 |
dabo into your Python installation's site-packages directory. The easiest way |
|---|
| 22 |
to find out where this is on your system (yes, it varies, so we can't just tell |
|---|
| 23 |
you where it is) is to start Python and query sys.path. |
|---|
| 24 |
|
|---|
| 25 |
For instance: |
|---|
| 26 |
|
|---|
| 27 |
[pmcnett@sol dabo]$ python |
|---|
| 28 |
Python 2.3.2 (#1, Oct 6 2003, 10:07:16) |
|---|
| 29 |
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2 |
|---|
| 30 |
Type "help", "copyright", "credits" or "license" for more information. |
|---|
| 31 |
>>> import sys |
|---|
| 32 |
>>> sys.path |
|---|
| 33 |
['', '/home/pmcnett/dl/python/wxPythonSrc-2.5.1.5/wxPython', '/usr/lib/python23.zip', |
|---|
| 34 |
'/usr/lib/python2.3', '/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk', |
|---|
| 35 |
'/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages', |
|---|
| 36 |
'/usr/lib/python2.3/site-packages/PythonCAD', '/usr/local/gnue/lib/python'] |
|---|
| 37 |
|
|---|
| 38 |
I can see that my site-packages directory is installed in |
|---|
| 39 |
/usr/lib/python2.3/site-packages. So I can then copy or symlink the dabo root |
|---|
| 40 |
directory there to make it importable. You will likely need administrative |
|---|
| 41 |
privileges to do this on your system, unless you happen to be running Windows, |
|---|
| 42 |
which most likely will let you write to any location that you want. |
|---|
| 43 |
|
|---|
| 44 |
If you would rather put dabo somewhere else, you can put a text file called |
|---|
| 45 |
dabo.pth inside your Python site-packages directory. The contents of this file |
|---|
| 46 |
must specify the parent directory where Dabo can be found. For instance, if |
|---|
| 47 |
you put Dabo in c:\programs\myprogs\dabo, you'll need your dabo.pth to say |
|---|
| 48 |
'c:\programs\myprogs'. |
|---|