NRAO Home  >  Green Bank  |  Wiki Topic:    GB > Software > DashBoard > BuildingDssPython
   Changes | Index | Contents | Search | Statistics | Go

Problem

How to build DSS python environment from scratch?


Solution


1 Select or create a DssPython root directory as user dss.

Please note that hereafter the DssPython root directory is referred to as DSSPYTHONROOT.

$ mkdir -p DSSPYTHONROOT/extern
$ cd DSSPYTHONROOT


2 Download packages

Download the following packages into extern:

Current DssPython is located in /home/dss/robin

Package Build Style Location Notes Version We Are Using Most Current Version Available
Python configure http://www.python.org/download   2.5.2 2.5.2
MX Base setup.py http://www.egenix.com/products/python   3.1.0 3.1.0
easy_install ez_setup.py http://peak.telecommunity.com/DevCenter/EasyInstall   0.6c8 0.6c8
matplotlib setup.py http://matplotlib.sourceforge.net/   0.98.1 0.98.1
pyfits setup.py http://www.stsci.edu/resources/software_hardware/pyfits   1.3 1.3
pyslalib setup.py http://www.cv.nrao.edu/%7Esransom/pyslalib-1.0.tar.gz   1.0 1.0
sqlite configure http://www.sqlite.org/   3.5.9 3.5.9
tgsetup.py tgsetup.py http://www.turbogears.org   1.0.4.4 1.0.5

Use easy_install to install the following packages

Package easy_install Version We Are Using Most Current Version Available
Genshi "genshi == 0.4.4" 0.4.4 0.5
ipython ipython 0.8.4 0.8.4
nose nose 0.10.3 0.10.3
MySQL Python mysql-python 1.2.2 1.2.2
numpy numpy 1.1.0 1.1.0
pyparsing pyparsing 1.5.0 1.5.0
pysqlite pysqlite 2.4.1 2.4.1
SQLAlchemy "sqlalchemy == 0.4.3" 0.4.3 0.4.6


3 Define build environment

Copy and edit a DssPython.bash and DssPython.csh. Edit both files and set DSSPYTHON_ROOT to DSSPYTHONROOT, and PYTHON_VERS to the numeric suffix of the downloaded Python version (e.g. 2.5.2).

$ vi DssPython.*
$ source DSSPYTHONROOT/DssPython.bash


4 Build Python

Build and install the python program.

$ cd $DSSPYTHON_ROOT/extern/Python-2.5.2
$ ./configure --prefix=$DSSPYTHON_ROOT
$ make
$ make install

$ cd $DSSPYTHON_ROOT
$ ls
bin extern include info lib man DssPython.bash DssPython.csh


Disclaimer


-- MikeMcCarty - 02 Jul 2008

Topic BuildingDssPython . { Edit | Attach | Ref-By | Printable | Diffs | r1.1 | More }
Revision r1.1 - 02 Jul 2008 - 02:04 GMT - MikeMcCarty
Parents: DashBoard
Content copyright © 1999-2007 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors.