| 1 | $prog $version |
|---|
| 2 | $release_date |
|---|
| 3 | Copyright (c) $yearrange $author ($author_email) |
|---|
| 4 | |
|---|
| 5 | $url |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | INSTALLATION |
|---|
| 10 | ============ |
|---|
| 11 | |
|---|
| 12 | NOTE! Since peppy is an application and not a library, it is not installed in |
|---|
| 13 | the site-packages directory. I recommend you just unpack the source and run |
|---|
| 14 | it from there. See the README for more instructions. |
|---|
| 15 | |
|---|
| 16 | If you're looking for more info on how to install optional packages, read on... |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | INSTALLING OPTIONAL MODULES |
|---|
| 21 | =========================== |
|---|
| 22 | |
|---|
| 23 | If using the hyperspectral image viewing capabilities of peppy, numpy |
|---|
| 24 | *must* be installed, and scipy and gdal can optionally be installed. |
|---|
| 25 | |
|---|
| 26 | Installing NumPy |
|---|
| 27 | ---------------- |
|---|
| 28 | |
|---|
| 29 | The numerical python library, NumPy (numpy.scipi.org) is installed |
|---|
| 30 | like a typical python module: by downloading it and running |
|---|
| 31 | |
|---|
| 32 | $ python setup.py install |
|---|
| 33 | |
|---|
| 34 | You may have to be root to complete the installation. |
|---|
| 35 | |
|---|
| 36 | Installing SciPy |
|---|
| 37 | ---------------- |
|---|
| 38 | |
|---|
| 39 | SciPy is a bit more complicated of an install, as it depends on the |
|---|
| 40 | BLAS and LAPACK libraries. The SciPy website has instructions here: |
|---|
| 41 | |
|---|
| 42 | http://www.scipy.org/Installing_SciPy/BuildingGeneral |
|---|
| 43 | |
|---|
| 44 | which is, unfortunately, a bit more complicated than just "python |
|---|
| 45 | setup.py install" but is relatively straight-forward. In general, you |
|---|
| 46 | can just follow those instructions. |
|---|
| 47 | |
|---|
| 48 | However, a problem that plagued me for a while was that the "python |
|---|
| 49 | setup.py install" stage was picking up libblas and liblapack from the |
|---|
| 50 | system's /usr/lib directory, and RedHat prior to early 2007 supplied |
|---|
| 51 | incomplete libraries. I had to replace these system libraries with my |
|---|
| 52 | just-built libraries, because setup.py seemed to ignore the paths I |
|---|
| 53 | specified for BLAS and LAPACK as shown in the instructions on the |
|---|
| 54 | webpage above. |
|---|
| 55 | |
|---|
| 56 | Installing GDAL |
|---|
| 57 | --------------- |
|---|
| 58 | |
|---|
| 59 | To take advantage of the variety of image formats that GDAL supports, |
|---|
| 60 | you can install it as well. Download from www.gdal.org and uncompress |
|---|
| 61 | in a directory. The setup is a bit more complicated than a typical |
|---|
| 62 | python module: |
|---|
| 63 | |
|---|
| 64 | $ cd gdal-1.4.1 |
|---|
| 65 | $ ./configure --without-python --with-ngpython |
|---|
| 66 | $ make |
|---|
| 67 | $ cd swig/python |
|---|
| 68 | $ python setup.py install |
|---|