Blame SOURCES/python-2.7.2-add-extension-suffix-to-python-config.patch

8db7d0
diff -up Python-2.7.2/Misc/python-config.in.add-extension-suffix-to-python-config Python-2.7.2/Misc/python-config.in
8db7d0
--- Python-2.7.2/Misc/python-config.in.add-extension-suffix-to-python-config	2011-08-23 18:15:41.832497124 -0400
8db7d0
+++ Python-2.7.2/Misc/python-config.in	2011-08-23 18:17:25.854490011 -0400
8db7d0
@@ -6,7 +6,7 @@ import getopt
8db7d0
 from distutils import sysconfig
8db7d0
 
8db7d0
 valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
8db7d0
-              'ldflags', 'help']
8db7d0
+              'ldflags', 'extension-suffix', 'help']
8db7d0
 
8db7d0
 def exit_with_usage(code=1):
8db7d0
     print >>sys.stderr, "Usage: %s [%s]" % (sys.argv[0],
8db7d0
@@ -54,3 +54,5 @@ for opt in opt_flags:
8db7d0
                 libs.extend(getvar('LINKFORSHARED').split())
8db7d0
         print ' '.join(libs)
8db7d0
 
8db7d0
+    elif opt == '--extension-suffix':
8db7d0
+        print (sys.pydebug and "_d" or "") + sysconfig.get_config_var('SO')