Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Obtain python source from python.org
  2. Ungzip/Untar source
  3. Change directory to Python-2.7.6
  4. Set the environment variable EXTRA_CFLAGS to "-fPIC -fwrapv"
  5. Change directory to Python-2.7.2
  6. edit setup.py, in detect_modules() change the lines from:
    add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
    add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
    to:
    add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
    add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
    add_dir_to_list(self.compiler.library_dirs, '/usr/lib')
    add_dir_to_list(self.compiler.include_dirs, '/usr/include')

  7. setenv LDFLAGS -fPIC; setenv CPPFLAGS -fPIC; setenv CFLAGS  -m64 -fPIC need to force 64 bit build even on rhel6-64
  8. Execute ./configure --prefix /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat5-i386-32bit-gcc41/python/2.7.6
  9. Execute make
  10. Execute make install
  11. Leave and erase the current directory (Python-2.7.6)
  12. Make sure to unset the env variables set up abovecd

pip (also installs setuptools)

...

which also installed tornado, python-dateutil, pyparsing, six, and backport.ssl-match-hostname

pywcs-1.12

pip install pywcspywcsS

astropy-1.0.

...

4

pip install astropy

APLpy-0.9.11 (requires astropy)

...

pywcs-1.12

pip install pywcs

astropy-0.3.1

pip install astropy

APLpy-0.9.11 (requires astropy)

...

pywcs-1.12

pip install pywcs

astropy-0.3.1

pip install astropy

APLpy-0.9.11 (requires astropy)

...