Index: /issm/trunk-jpl/externalpackages/python/install-macosx-lion.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/python/install-macosx-lion.sh	(revision 12719)
+++ /issm/trunk-jpl/externalpackages/python/install-macosx-lion.sh	(revision 12720)
@@ -23,5 +23,9 @@
 #Configure doxygen
 cd src 
-./configure --prefix="$ISSM_DIR/externalpackages/python/install" --enable-framework="$ISSM_DIR/externalpackages/python/install"
+./configure --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks" 
+#obsolete? 
+#./configure --prefix="$ISSM_DIR/externalpackages/python/install" --enable-framework="$ISSM_DIR/externalpackages/python/install"
+
+#make
 if [ -z $1 ]; then
 	make
@@ -38,5 +42,14 @@
 	ln -s Python.framework/Versions/3.2/include/python3.2m include
 	ln -s Python.framework/Versions/3.2/lib/ lib
+fi
 
+#Some modifications to be done in case version is 2.7
+if [[ $version == "2.7.2" ]]; then 
+	cd ../install
+	ln -s Library/Frameworks/Python.framework/Headers include
+	ln -s Library/Frameworks/Python.framework/Versions/2.7/lib lib
 
+	#Patch pyport.h:
+	cd include
+	patch pyport.h ../patch/pyport.h.patch
 fi
Index: /issm/trunk-jpl/externalpackages/python/install-macosx-snowleopard.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/python/install-macosx-snowleopard.sh	(revision 12719)
+++ /issm/trunk-jpl/externalpackages/python/install-macosx-snowleopard.sh	(revision 12720)
@@ -27,4 +27,6 @@
 # --prefix is recognized as $SOME_PATH as long as this form is taken, so it's not necessary to include
 ./configure --enable-framework="$ISSM_DIR/externalpackages/python/install/Library/Frameworks" 
+
+#make
 if [ -z $1 ]; then
 	make
@@ -48,3 +50,7 @@
 	ln -s Library/Frameworks/Python.framework/Headers include
 	ln -s Library/Frameworks/Python.framework/Versions/2.7/lib lib
+	
+	#Patch pyport.h:
+	cd include
+	patch pyport.h ../patch/pyport.h.patch
 fi
