|
Revision 813, 1.4 KB
(checked in by dokai, 3 years ago)
|
|
Added notes about setting (DY)LD_LIBRARY_PATH.
|
| Line | |
|---|
| 1 | ================== |
|---|
| 2 | Shapely - Buildout |
|---|
| 3 | ================== |
|---|
| 4 | |
|---|
| 5 | This is a buildout system for Shapely. It is based on zc.buildout. |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | Installation |
|---|
| 9 | ------------ |
|---|
| 10 | |
|---|
| 11 | $ svn co http://svn.gispython.org/svn/gispy/buildout/shapely.buildout/trunk shapely.buildout |
|---|
| 12 | $ python bootstrap.py |
|---|
| 13 | $ ./bin/buildout |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | Testing |
|---|
| 17 | ------- |
|---|
| 18 | |
|---|
| 19 | The test suite is run by:: |
|---|
| 20 | |
|---|
| 21 | $ ./bin/test |
|---|
| 22 | |
|---|
| 23 | Because Shapely uses the GEOS library that is installed within the |
|---|
| 24 | buildout sandbox, you need to tell the system where to find the |
|---|
| 25 | dynamic libraries. Simply edit the ``setenv`` script located in the |
|---|
| 26 | root of the buildout to match your system and run it:: |
|---|
| 27 | |
|---|
| 28 | $ . ./setenv |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | Developing |
|---|
| 32 | ---------- |
|---|
| 33 | |
|---|
| 34 | The Shapely code is under ``src/Shapely``. It is installed as a |
|---|
| 35 | development egg so any changes made to the source code are immediately |
|---|
| 36 | available for use. |
|---|
| 37 | |
|---|
| 38 | There is a python interpreter available under:: |
|---|
| 39 | |
|---|
| 40 | $ ./bin/python |
|---|
| 41 | |
|---|
| 42 | that has Shapely available for importing and use. You need to setup |
|---|
| 43 | your LD_LIBRARY_PATH first. See the notes about ``setenv`` in the |
|---|
| 44 | ``Testing`` section above. |
|---|
| 45 | |
|---|
| 46 | If you're using multiple zc.buildout based buildouts for your |
|---|
| 47 | development, you may wish to share the downloaded eggs and tarballs |
|---|
| 48 | among them to save disk space. To do this create a file:: |
|---|
| 49 | |
|---|
| 50 | ~/.buildout/default.cfg |
|---|
| 51 | |
|---|
| 52 | and put the following there:: |
|---|
| 53 | |
|---|
| 54 | [buildout] |
|---|
| 55 | eggs = /path/to/shared/egg/container |
|---|
| 56 | download-directory = /path/to/shared/package/container |
|---|
| 57 | |
|---|