Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
  • Python 2.5.1 (built against tcltk 8.4)
  • NumPy
  • PyFITS
  • 4Suite-XML
  • IPython
  • OmniOrb OmniOrb

Python 2.5.1 (built against tcltk 8.4)

...

  1. Download the appropriate python2.5.1 msi file for your windows architecture http://www.python.org/download/releases/2.5.1/
  2. Using command.exe, enter the following command
    • if installing on a network drive (assuming that you are logged in on glast-win06)
      • msiexec /a <python-msi-path>/python-2.5.1.msi ALLUSERS=1 TARGETDIR=<installation director
        • Example, to install python in "V:\Glast_Software\Toaster\GLAST_EXT\Windows-i386-32bit\python\2.5.1-gl1\vcc71" enter
          •  msiexec /a V:\Glast_Software\Toaster\GLAST_EXT\VC8\python\python-2.5.1.msi ALLUSERS=1 TARGETDIR="V:\Glast_Software\Toaster\GLAST_EXT\Windows-i386-32bit\python\2.5.1-gl1\vcc71"

Linux /Mac operating system

  1. Download Python 2.5.1 from http://www.python.org/download/releases/2.5.1/
  2. Unzip and change to the directory of the unpacked archive, E.g.,  
    • tar -zxvf  Python-2.5.1.tgz
    • cd Python-2.5.1
  3. Run, "./configure --prefix=<installation directory>," E.g.,
    • ./configure --prefix=/afs/slac/g/glast/ground/GLAST_EXT/redhat4-i686-32bit/python/2.5.1-gl1/gcc34/
  4. Edit the file, "Setup," in the "Modules" directory, "Modules/Setup"
    1. Enable zlib (Uncomment the line corresponding to "zlib")
    1. To build Python against tcltck 8.4, there are three lines to edit in the file (I would suggest searching for "_tkinter" in the Modules/Setup file, then
    following
    1. follow the documentation)
      • Enable tkinter, by Uncommenting the line "_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT "
      • Uncomment and edit to reflect where your Tcl/Tk libraries are
    , example
        • (for linux) "-L/afs/slac.stanford.edu/g/glast/applications/heasoft/PROD/tcltk/i686-pc-linux-gnu-libc2.3.2/lib"
      • Uncomment and edit to reflect where your Tcl/Tk headers are
        • (for linux) "-I/afs/slac.stanford.edu/g/glast/applications/heasoft/PROD/tcltk/i686-pc-linux-gnu-libc2.3.2/include"
      • Uncomment and edit to reflect your Tcl/Tk versions are
  1. Run
    • *make
    • make install

 
*While running "make", if you run into any compiler problems finding tcl8.4 or tk8.4 libraries, try setting the environment variable, LD_RUN_PATH to point to the location of the tcltk libraries:

  1. make clean
  2. setenv LD_RUN_PATH <Location of tcltk libraries>
  3. make
  4. make install
  5. unsetenv LD_RUN_PATH

Mac operating system

  1. Download Python 2.5.1 from http://www.python.org/download/releases/2.5.1/
  2. Unzip and change to the directory of the unpacked archive, E.g.,
    • tar -zxvf  Python-2.5.1.tgz
    • cd Python-2.5.1
  3. Run, "./configure --prefix=<installation directory>," E.g.,
    • ./configure --prefix=/afs/slac/g/glast/ground/GLAST_EXT/tiger-i386-32bit/python/2.5.1-gl1/gcc40/
  4. Edit the file, "Setup," in the "Modules" directory, "Modules/Setup"
    1. Enable zlib (Uncomment the line corresponding to "zlib")
    1. To build Python against tcltck 8.4, there are three lines to edit in the file (I would suggest searching for "_tkinter" in the Modules/Setup file, then follow the documentation)
      • Enable tkinter, by Uncommenting the line "_tkinter _tkinter.c tkappinit.c -DWITH_APPINIT "
      • Uncomment and edit to reflect where your Tcl/Tk libraries are (/usr/lib)
        • -L/usr/lib
      • Uncomment and edit to reflect where your Tcl/Tk headers are (/usr/include)
        • -I/usr/include
      • Uncomment and edit to reflect your Tcl/Tk versions are
  1. Run
    1. make
    2. make install

NumPy

Windows operating system 

* Do not attempt to use the Microsoft installer to install numPy.  The problem is that you cannot easily specify which instance of Python that you want to install NumPy against.  The installer will automatically select the install location based on the registry value for the standard Python location on the local windows machine. 

  1. Download the source http://numpy.scipy.org/
  2. Unzip the contents of the tar.gz file
  3. move into the directory numpy-1.2.0 (or for whichever version you download)
  4. Run setup.py with the full path to the python executable for which you want to install numpy-1.2.0 against
    • Example
      • V:\Glast_Software\Toaster\GLAST_EXT\Windows-i386-32bit\python\2.5.1-gl1\vc71\bin\python.exe setup.py install

...

Do not attempt to use the Microsoft installer to install PyFITS.  The problem is that you cannot easily specify which instance of Python that you want to install PyFITS against, and you cannot specify the install location manually.  The installer will automatically select the install location based on the registry value for the standard Python location on the local windows machine. 

  1. Download the source http://www.stsci.edu/resources/software_hardware/pyfits/Download
  2. Unzip the contents of the tar.gz file
  3. move into the directory pyfits-1.3 (or for whichever version you download)
  4. Run setup.py with the full path to the python executable for which you want to install pyfits-1.3 against
    • Example
      • V:\Glast_Software\Toaster\GLAST_EXT\Windows-i386-32bit\python\2.5.1-gl1\vc71\bin\python.exe setup.py install

...

Do not attempt to use the Microsoft installer to install 4Suite-XML.  The problem is that you cannot easily specify which instance of Python that you want to install 4Suite-XML against, and you cannot specify the install location manually.  The installer will automatically select the install location based on the registry value for the standard Python location on the local windows machine. 

  1. Download the source http://4suite.org/index.xhtml
  2. Unzip the contents of the tar.gz file
  3. move into the directory 4Suite-XML-1.0.2  (or for whichever version you download)
  4. Run setup.py with the full path to the python executable for which you want to install 4Suite-XML-1.0.2  against
    • Example
      • V:\Glast_Software\Toaster\GLAST_EXT\Windows-i386-32bit\python\2.5.1-gl1\vc71\bin\python.exe setup.py install

...