...
- Obtain python source from python.org
- Ungzip/Untar source
- Change directory to Python-2.7.6
- Set the environment variable EXTRA_CFLAGS to "-fPIC -fwrapv"
- Change directory to Python-2.7.2
- 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') - setenv LDFLAGS -fPIC; setenv CPPFLAGS -fPIC; setenv CFLAGS -m64 -fPIC need to force 64 bit build even on rhel6-64
- Execute ./configure --prefix /afs/slac.stanford.edu/g/glast/ground/GLAST_EXT/redhat5-i386-32bit-gcc41/python/2.7.6
- Execute make
- Execute make install
- Leave and erase the current directory (Python-2.7.6)
- 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)
...