Index: /issm/trunk-jpl/externalpackages/python/install.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/python/install.sh	(revision 11948)
+++ /issm/trunk-jpl/externalpackages/python/install.sh	(revision 11949)
@@ -2,6 +2,6 @@
 #wget http://python.org/ftp/python/version/Python-version.tgz
 
-#version=3.2.2
-version=2.7.2
+version=3.2.2
+#version=2.7.2
 
 #Some cleanup
@@ -27,2 +27,13 @@
 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
Index: /issm/trunk-jpl/externalpackages/python/patch/pyport.h.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/python/patch/pyport.h.patch	(revision 11949)
+++ /issm/trunk-jpl/externalpackages/python/patch/pyport.h.patch	(revision 11949)
@@ -0,0 +1,42 @@
+Index: Include/pyport.h
+===================================================================
+--- Include/pyport.h (revision 933)
++++ Include/pyport.h (working copy)
+@@ -514,22 +514,40 @@
+#if __FreeBSD_version > 500039
+#include <ctype.h>
+#include <wctype.h>
++/* If the source file #includes <cctype> before "Python.h" then
++ * these macros will not be defined at this point and we
++ * should not define them either.
++ */
++#ifdef isalnum
+#undef isalnum
+#define isalnum(c) iswalnum(btowc(c))
++#endif
++#ifdef isalpha
+#undef isalpha
+#define isalpha(c) iswalpha(btowc(c))
++#endif
++#ifdef islower
+#undef islower
+#define islower(c) iswlower(btowc(c))
++#endif
++#ifdef isspace
+#undef isspace
+#define isspace(c) iswspace(btowc(c))
++#endif
++#ifdef isupper
+#undef isupper
+#define isupper(c) iswupper(btowc(c))
++#endif
++#ifdef tolower
+#undef tolower
+#define tolower(c) towlower(btowc(c))
++#endif
++#ifdef toupper
+#undef toupper
+#define toupper(c) towupper(btowc(c))
+#endif
+#endif
++#endif
