Blame SOURCES/python-2.7rc1-binutils-no-dep.patch

ae2451
diff -up Python-2.7rc1/Lib/ctypes/util.py.binutils-no-dep Python-2.7rc1/Lib/ctypes/util.py
ae2451
--- Python-2.7rc1/Lib/ctypes/util.py.binutils-no-dep	2010-03-15 09:42:23.000000000 -0400
ae2451
+++ Python-2.7rc1/Lib/ctypes/util.py	2010-06-06 05:03:02.155975210 -0400
ae2451
@@ -140,7 +140,9 @@ elif os.name == "posix":
ae2451
             dump = f.read()
ae2451
             rv = f.close()
ae2451
             if rv == 10:
ae2451
-                raise OSError, 'objdump command not found'
ae2451
+                return os.path.basename(f) #  This is good for GLibc, I think,
ae2451
+                                           # and a dep on binutils is big (for
ae2451
+                                           # live CDs).
ae2451
             f = os.popen(cmd)
ae2451
             try:
ae2451
                 data = f.read()