Index: /issm/trunk-jpl/externalpackages/python/install-macosx-snowleopard.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/python/install-macosx-snowleopard.sh	(revision 12243)
+++ /issm/trunk-jpl/externalpackages/python/install-macosx-snowleopard.sh	(revision 12243)
@@ -0,0 +1,41 @@
+#!/bin/bash
+#wget http://python.org/ftp/python/version/Python-version.tgz
+
+#version=3.2.2
+version=2.7.2
+
+#Some cleanup
+rm -rf install src
+rm -rf Python-$version
+mkdir install src
+
+#Download from ISSM server
+$ISSM_DIR/scripts/DownloadExternalPackage.py http://issm.jpl.nasa.gov/files/externalpackages/Python-$version.tgz Python-$version.tgz
+
+#exports
+export CC
+export MACOSX_DEPLOYMENT_TARGET=10.6
+
+#Untar and move python into install directory
+tar -zxvf  Python-$version.tgz
+mv Python-$version/* src
+rm -rf Python-$version
+
+#Configure doxygen
+cd src 
+./configure --prefix="$ISSM_DIR/externalpackages/python/install" --enable-framework="$ISSM_DIR/externalpackages/python/install" --enable-universalsdk --with-universal-archs="32-bit"
+if [ -z $1 ]; then
+	make
+else
+	make -j $1
+fi
+make install
+
+#Some modifications to be done in case version is 3.2: 
+if [[ $version == "3.2.2" ]]; then 
+	cd install/bin
+	ln -s python3.2 python 
+	cd ../
+	ln -s Python.framework/Versions/3.2/include/python3.2m include
+	ln -s Python.framework/Versions/3.2/lib/ lib
+fi
