[pypy-svn] r69622 - pypy/branch/force-arch-darwin/lib-python/modified-2.5.2/ctypes

santagada at codespeak.net santagada at codespeak.net
Wed Nov 25 01:54:59 CET 2009


Author: santagada
Date: Wed Nov 25 01:54:58 2009
New Revision: 69622

Modified:
   pypy/branch/force-arch-darwin/lib-python/modified-2.5.2/ctypes/__init__.py
Log:
comment out osx 10.3 support code (we build with 10.4 sdk anyway).

Modified: pypy/branch/force-arch-darwin/lib-python/modified-2.5.2/ctypes/__init__.py
==============================================================================
--- pypy/branch/force-arch-darwin/lib-python/modified-2.5.2/ctypes/__init__.py	(original)
+++ pypy/branch/force-arch-darwin/lib-python/modified-2.5.2/ctypes/__init__.py	Wed Nov 25 01:54:58 2009
@@ -23,21 +23,23 @@
     from _ctypes import FormatError
 
 DEFAULT_MODE = RTLD_LOCAL
-if _os.name == "posix" and _sys.platform == "darwin":
-    import gestalt
-
-    # gestalt.gestalt("sysv") returns the version number of the
-    # currently active system file as BCD.
-    # On OS X 10.4.6 -> 0x1046
-    # On OS X 10.2.8 -> 0x1028
-    # See also http://www.rgaros.nl/gestalt/
-    #
-    # On OS X 10.3, we use RTLD_GLOBAL as default mode
-    # because RTLD_LOCAL does not work at least on some
-    # libraries.
-
-    if gestalt.gestalt("sysv") < 0x1040:
-        DEFAULT_MODE = RTLD_GLOBAL
+# XXX lets just not support osx 10.3 for now
+# if _os.name == "posix" and _sys.platform == "darwin":
+#     
+#     import gestalt
+# 
+#     # gestalt.gestalt("sysv") returns the version number of the
+#     # currently active system file as BCD.
+#     # On OS X 10.4.6 -> 0x1046
+#     # On OS X 10.2.8 -> 0x1028
+#     # See also http://www.rgaros.nl/gestalt/
+#     #
+#     # On OS X 10.3, we use RTLD_GLOBAL as default mode
+#     # because RTLD_LOCAL does not work at least on some
+#     # libraries.
+# 
+#     if gestalt.gestalt("sysv") < 0x1040:
+#         DEFAULT_MODE = RTLD_GLOBAL
 
 from _ctypes import FUNCFLAG_CDECL as _FUNCFLAG_CDECL, \
      FUNCFLAG_PYTHONAPI as _FUNCFLAG_PYTHONAPI



More information about the Pypy-commit mailing list