$ cvs co jhbuild

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Setup $HOME/.jhbuildrc to install in (say) $HOME/JHB

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

I found that I needed to say

$ jhbuild boostrap

in order to get my autoconf macros recognised

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

$ jhbuild build pslib

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Install
	ac_pkg_swig.m4      ac_python_devel.m4
into
	$HOME/JHB/share/aclocal

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

To build/use the code, you'll have to source some script such as:

export JHTREE=$HOME/JHB/Linux
export PYTHONPATH=$HOME/Python:$HOME/Pan-STARRS/Pois/python:$HOME/Pan-STARRS/Pois/swig:$JHTREE/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$JHTREE/lib
export PATH=$JHTREE/bin:$(echo $PATH | perl -pe "s|$JHTREE/bin||")
export PKG_CONFIG_PATH=$JHTREE/lib/pkgconfig:$PKG_CONFIG_PATH
hash -r

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

You need to set XPA_DIR to somewhere that the xpa libraries can be found;
or (better) install the xpa stuff in $JHTREE/{lib,include}

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

To build from scratch:

./autogen.sh --prefix=$JHTREE

(note that you set JHTREE above)

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

To be able to display images, ensure that ds9 and xpans are in your path (xpans
is a utility used to communicate with ds9)

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

When all is setup, say:

$ python
>>> import pois
>>> help(pois.run)
>>> pois.run(fileDir="data", verbose=3, display={'stamps':1, 'reference':1, 'subtracted':1})
