| 1 | | < software will be installed using the Python distutils - python setup.py install > |
|---|
| | 1 | Dabo will be installed using the Python distutils - python setup.py install, |
|---|
| | 2 | but that isn't set up yet, so here is a quick blurb to get you going. |
|---|
| | 3 | |
|---|
| | 4 | Dabo is a runtime library, which your applications will import using standard Python |
|---|
| | 5 | syntax. Therefore, it needs to be in PYTHONPATH, so that your 'import dabo' statements |
|---|
| | 6 | will find it. The easiest way to do this is to put dabo into your Python installation's |
|---|
| | 7 | site-packages directory. The easiest way to find out where this is on your system (yes, |
|---|
| | 8 | it varies, so we can't just tell you where it is) is to start Python and query sys.path. |
|---|
| | 9 | |
|---|
| | 10 | For instance: |
|---|
| | 11 | |
|---|
| | 12 | [pmcnett@sol dabo]$ python |
|---|
| | 13 | Python 2.3.2 (#1, Oct 6 2003, 10:07:16) |
|---|
| | 14 | [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2 |
|---|
| | 15 | Type "help", "copyright", "credits" or "license" for more information. |
|---|
| | 16 | >>> import sys |
|---|
| | 17 | >>> sys.path |
|---|
| | 18 | ['', '/home/pmcnett/dl/python/wxPythonSrc-2.5.1.5/wxPython', '/usr/lib/python23.zip', |
|---|
| | 19 | '/usr/lib/python2.3', '/usr/lib/python2.3/plat-linux2', '/usr/lib/python2.3/lib-tk', |
|---|
| | 20 | '/usr/lib/python2.3/lib-dynload', '/usr/lib/python2.3/site-packages', |
|---|
| | 21 | '/usr/lib/python2.3/site-packages/PythonCAD', '/usr/local/gnue/lib/python'] |
|---|
| | 22 | |
|---|
| | 23 | I can see that my site-packages directory is installed in /usr/lib/python2.3/site-packages. |
|---|
| | 24 | So I can then copy or symlink the dabo root directory there to make it importable. You |
|---|
| | 25 | will likely need administrative privileges to do this on your system, unless you happen |
|---|
| | 26 | to be running Windows. |
|---|
| | 27 | |
|---|