An interpreted, interactive, object-oriented programming language
CentOS Sources
2017-08-01 71084d584ff953f5463757ec6536406320560b4d
commit | author | age
6e8c2f 1 diff -up Python-2.7.2/Misc/python-config.in.add-extension-suffix-to-python-config Python-2.7.2/Misc/python-config.in
CB 2 --- Python-2.7.2/Misc/python-config.in.add-extension-suffix-to-python-config    2011-08-23 18:15:41.832497124 -0400
3 +++ Python-2.7.2/Misc/python-config.in    2011-08-23 18:17:25.854490011 -0400
4 @@ -6,7 +6,7 @@ import getopt
5  from distutils import sysconfig
6  
7  valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
8 -              'ldflags', 'help']
9 +              'ldflags', 'extension-suffix', 'help']
10  
11  def exit_with_usage(code=1):
12      print >>sys.stderr, "Usage: %s [%s]" % (sys.argv[0],
13 @@ -54,3 +54,5 @@ for opt in opt_flags:
14                  libs.extend(getvar('LINKFORSHARED').split())
15          print ' '.join(libs)
16  
17 +    elif opt == '--extension-suffix':
18 +        print (sys.pydebug and "_d" or "") + sysconfig.get_config_var('SO')