Index: /issm/trunk-jpl/externalpackages/python/install-macosx-lion.sh
===================================================================
--- /issm/trunk-jpl/externalpackages/python/install-macosx-lion.sh	(revision 12733)
+++ /issm/trunk-jpl/externalpackages/python/install-macosx-lion.sh	(revision 12734)
@@ -1,5 +1,4 @@
 #!/bin/bash
 #wget http://python.org/ftp/python/version/Python-version.tgz
-
 #version=3.2.2
 version=2.7.2
Index: /issm/trunk-jpl/externalpackages/python/patches/pyport.h.patch
===================================================================
--- /issm/trunk-jpl/externalpackages/python/patches/pyport.h.patch	(revision 12734)
+++ /issm/trunk-jpl/externalpackages/python/patches/pyport.h.patch	(revision 12734)
@@ -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
Index: /issm/trunk-jpl/externalpackages/python/patches/pyport.h.patch.bugreport
===================================================================
--- /issm/trunk-jpl/externalpackages/python/patches/pyport.h.patch.bugreport	(revision 12734)
+++ /issm/trunk-jpl/externalpackages/python/patches/pyport.h.patch.bugreport	(revision 12734)
@@ -0,0 +1,1 @@
+http://bugs.python.org/issue10910
