On Mon, Jan 12, 2009 at 2:51 PM, Gregory S Morin <gsm5...@cs.rit.edu> wrote:
> Anyone who got this to build on Solaris have any info on which
> compiler/libraries you used, env vars, etc?
>
> I've been trying a few different configs, but haven't made any real
> progress.  I'll have to poke at it when I get some more free time, but I'm
> hoping maybe someone else has run into this.
>
> Thanks John, for the comment, it is a good start.

I'll attach the Makefile I use on our solaris x86 system -- your
milage may vary!.  The makefile is for upping, building, and
installing ipython, numpy, mpl and scipy from svn/bzr head:

HOME = /home/titan/johnh
SRCDIR = ${HOME}/python/svn
PREFIX=${HOME}/dev
INSTALL=/opt/basedir/research/site-packages
SVN = /opt/app/bin/svn
BZR = /opt/app/bin/bzr
CC=/opt/app/g++lib6/gcc-3.4/bin/gcc
CXX=/opt/app/g++lib6/gcc-3.4/bin/g++
PKG_CONFIG_PATH=/opt/app/gnome-2.6/lib/pkgconfig
INSTALL_LOCAL=${PREFIX}/lib/python2.4/site-packages


INSTALL_LOCAL=${PREFIX}/lib/python2.4/site-packages



clean_ipython:
        rm -rf ${SRCDIR}/ipython/build; true

clean_numpy:
        rm -rf ${SRCDIR}/numpy/build; true

clean_scipy:
        rm -rf ${SRCDIR}/scipy/build; true

clean_mpl:
        rm -rf ${SRCDIR}/mpl/build; true



clean: clean_ipython clean_numpy clean_scipy clean_mpl


up_ipython:
        ${BZR} merge --pull --directory=${SRCDIR}/ipython

up_mpl:
        ${SVN} up ${SRCDIR}/mpl


up_numpy:
        ${SVN} up ${SRCDIR}/numpy

up_scipy:
        ${SVN} up ${SRCDIR}/scipy

up: up_ipython up_numpy up_scipy up_mpl

local_ipython:
        cd ${SRCDIR}/ipython; python setup.py build
        rm -rf ${INSTALL_LOCAL}/ipython; true
        cd ${SRCDIR}/ipython; python setup.py install --prefix=${PREFIX}


local_numpy:
        cd ${SRCDIR}/numpy; CC=${CC} CXX=${CXX} python setup.py  build
        rm -rf ${INSTALL_LOCAL}/numpy; true
        cd ${SRCDIR}/numpy; python setup.py install --prefix=${PREFIX}


local_scipy:
        cd ${SRCDIR}/scipy; CC=${CC} CXX=${CXX}
ATLAS=/opt/app/nonc++/atlas-3.7/lib PYTHONPATH=${INSTALL_LOCAL} python
setup.py build
        rm -rf ${INSTALL_LOCAL}/scipy; true
        cd ${SRCDIR}/scipy; CC=${CC} CXX=${CXX} PYTHONPATH=${INSTALL_LOCAL}
python setup.py install --prefix=${PREFIX}

local_mpl:
        cd ${SRCDIR}/mpl; CC=${CC} CXX=${CXX}
PKG_CONFIG_PATH=${PKG_CONFIG_PATH}
PYTHONPATH=${INSTALL_LOCAL}:/opt/app/g++lib6/python-2.4/lib/python2.4/site-packages/3rdParty/gtk-2.6
python setup.py build_ext  -I
/opt/app/gnome-2.6/include:/opt/app/libpng/include:/opt/app/freetype-2.1.10/include:/opt/app/freetype-2.1.10/include/freetype2
    -L /opt/app/gnome-2.6/lib:/opt/app/libpng/lib:/opt/app/freetype-2.1.10/lib
    -R /opt/app/gnome-2.6/lib:/opt/app/freetype-2.1.10/lib:/opt/app/libpng/lib
build
        rm -rf ${INSTALL_LOCAL}/matplotlib; true
        cd ${SRCDIR}/mpl; PKG_CONFIG_PATH=${PKG_CONFIG_PATH}
PYTHONPATH=${INSTALL_LOCAL} python setup.py install --prefix=${PREFIX}



local: local_ipython local_numpy local_scipy local_mpl

all: clean up local

install:
        cp -r ${INSTALL} ${INSTALL}.bak
        rm -rf ${INSTALL}/IPython; true
        cd ${INSTALL_LOCAL}; cp -r IPython ${INSTALL}/
        rm -rf ${INSTALL}/numpy; true
        cd ${INSTALL_LOCAL}; cp -r numpy ${INSTALL}/
        rm -rf ${INSTALL}/scipy; true;
        cd ${INSTALL_LOCAL}; cp -r scipy ${INSTALL}/
        rm -rf ${INSTALL}/matplotlib ${INSTALL}/pylab* ${INSTALL}/dateutil
${INSTALL}/pytz; true
        cd ${INSTALL_LOCAL}; cp -r matplotlib pylab* dateutil pytz ${INSTALL}/

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to