Changes between Version 5 and Version 6 of pyRAF


Ignore:
Timestamp:
01/31/06 11:41:25 (21 years ago)
Author:
cdelarcuz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • pyRAF

    v5 v6  
    9999cdelacruz@metis:/usr/local/pyraf$ sudo tar xf stsci_python_v2.2.tar
    100100
    101 Build Numarray:
     101iraf@metis% tar -xf stsci_python_v2.2.tar
     102cdelacruz@metis:/usr/local/pyraf$ su iraf
    102103
    103 cdelacruz@metis:/usr/local/pyraf$ cd stsci_python
    104 cdelacruz@metis:/usr/local/pyraf/stsci_python$ cd numarray-1.4.1
    105 cdelacruz@metis:/usr/local/pyraf/stsci_python/numarray-1.4.1$ sudo python setup.py config --gencode
     104Numarray Installation:
    106105
    107 Using EXTRA_COMPILE_ARGS = []
    108 generating new API module 'libnumarray' .c  & .h
    109 generating new API module 'libteacup' .c  & .h
    110 generating new API module 'libnumeric' .c  & .h
    111 Using builtin 'lite' BLAS and LAPACK
    112 running config
    113 Wrote config.h
    114 cdelacruz@metis:/usr/local/pyraf/stsci_python/numarray-1.4.1$
     106metis:/usr/local/pyraf> cd stsci_python/numarray-1.4.1
     107metis:/usr/local/pyraf/stsci_python/numarray-1.4.1> python
     108metis:/usr/local/pyraf/stsci_python/numarray-1.4.1> sudo python setup.py config install --gencode
    115109
    116110
    117 
    118 Install rest of packages:
    119 Issues with numarray path, installed (python2.4) numarray using apt-get:
    120 
    121 python2.4-numarray - An array processing package modelled after Python-Numeric
    122 python2.4-numarray-ext - Extension modules for Python array processing
    123 
    124 cdelacruz@metis:/usr/local/pyraf/stsci_python/numarray-1.4.1$ sudo apt-get install python2.4-numarray
    125 cdelacruz@metis:/usr/local/pyraf/stsci_python/numarray-1.4.1$ sudo apt-get install python-numarray-doc
    126 
    127 Installed remaining packages:
     111metis:/usr/local/pyraf/stsci_python> sudo python setup.py install --with-f2c=/usr/bin/
    128112
    129113
    130 cdelacruz@metis:/usr/local/pyraf/stsci_python$ sudo python setup.py install --with-f2c=/usr/bin
     114PyRAF Setup
     115After a default installation the pyraf startup script is located in the same directory with the python executable, so this directory has to be on the search path. Modify the environment variable $PATH if necessary. If the software was installed in a personal directory, with either "--home=" or "--prefix=", then the startup script is located in /bin. If "--local=", then pyraf's startup script is in /pyraf. In order to run PyRAF conveniently, you can define an alias or create a symbolic link to the startup script.
    131116
    132 All packages installed except pydrizzle:
     117%alias pyraf <install_dir>/bin/pyraf
     118%cd /usr/local/bin (or some other directory on PATH)
     119%ln -s /bin/pyraf pyraf
    133120
    134 f2c.h needed to build pydrizzle.
     121Note for Linux users: There is a problem running iraf on some Linux systems (Fedora, RHEL, possibly others). Quote from the iraf web site:
    135122
    136 Copied missing files and recompiled:
    137 cdelacruz@metis:/usr/include$ sudo cp /usr/lib/libf2c* /usr/bin
     123" Specifically, pointers allocated in the normal course of a task may occasionally be at an address outside the user's per-process stack space, resulting in a "memory has been corrupted" or "segmentation violation" error. The workaround is to remove the stacksize limit in the user's shell with a command such as:
     124
     125%limit stacksize unlimited # for tcsh users
     126%ulimit -s unlimited # for bash users
     127
     128As a preventive measure against this problem, the CL startup script was modified to implement this change and so most users who only use IRAF from the CL will not need to take any special action."
     129
     130PyRAF does not use the CL start up script, so you will need to have this command in your unix start up files (for example ~/.login).
     131Testing The Installation
     132After you finish the installation of all packages, you can run the script stsci_python/test22.py to check the integrity and version compatibility of the installation.
     133
     134Note: This script must be run from a directory other than stsci_python, for example your home directory.
     135
     136%cp stsci_python/test22.py ~
     137%cd
     138%python test22.py
    138139
    139140}}}