[Python-checkins] r84747 - in python/branches/py3k/Misc: NEWS python-config.in

georg.brandl python-checkins at python.org
Sun Sep 12 19:14:26 CEST 2010


Author: georg.brandl
Date: Sun Sep 12 19:14:26 2010
New Revision: 84747

Log:
9806: add --extension-suffix option to python-config.

Modified:
   python/branches/py3k/Misc/NEWS
   python/branches/py3k/Misc/python-config.in

Modified: python/branches/py3k/Misc/NEWS
==============================================================================
--- python/branches/py3k/Misc/NEWS	(original)
+++ python/branches/py3k/Misc/NEWS	Sun Sep 12 19:14:26 2010
@@ -137,6 +137,10 @@
 Build
 -----
 
+- Issue #9806: python-config now has an ``--extension-suffix`` option that
+  outputs the suffix for dynamic libraries including the ABI version name
+  defined by PEP 3149.
+
 - Issue #941346: Improve the build process under AIX and allow Python to
   be built as a shared library.  Patch by Sébastien Sablé.
 

Modified: python/branches/py3k/Misc/python-config.in
==============================================================================
--- python/branches/py3k/Misc/python-config.in	(original)
+++ python/branches/py3k/Misc/python-config.in	Sun Sep 12 19:14:26 2010
@@ -6,7 +6,7 @@
 import sysconfig
 
 valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
-              'ldflags', 'help']
+              'ldflags', 'extension-suffix', 'help']
 
 def exit_with_usage(code=1):
     print("Usage: {0} [{1}]".format(
@@ -54,3 +54,5 @@
             libs.extend(getvar('LINKFORSHARED').split())
         print(' '.join(libs))
 
+    elif opt == '--extension-suffix':
+    	print(sysconfig.get_config_var('SO'))


More information about the Python-checkins mailing list