~ubuntu-branches/ubuntu/raring/python3.2/raring

« back to all changes in this revision

Viewing changes to debian/patches/python-configdir.diff

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2012-10-21 18:38:17 UTC
  • Revision ID: package-import@ubuntu.com-20121021183817-vens8z6676vw3qyf
Tags: 3.2.3-6ubuntu4
* Update to 20121021 from the 3.2 branch.
* Backport python-config's --configdir option to 3.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Backport python-config's --configdir option to 3.2.
 
2
 
 
3
--- a/Misc/python-config.in
 
4
+++ b/Misc/python-config.in
 
5
@@ -7,7 +7,7 @@
 
6
 import sysconfig
 
7
 
 
8
 valid_opts = ['prefix', 'exec-prefix', 'includes', 'libs', 'cflags',
 
9
-              'ldflags', 'extension-suffix', 'help', 'abiflags']
 
10
+              'ldflags', 'extension-suffix', 'help', 'abiflags', 'configdir']
 
11
 
 
12
 def exit_with_usage(code=1):
 
13
     print("Usage: {0} [{1}]".format(
 
14
@@ -61,3 +61,6 @@
 
15
 
 
16
     elif opt == '--abiflags':
 
17
         print(sys.abiflags)
 
18
+
 
19
+    elif opt == '--configdir':
 
20
+        print(sysconfig.get_config_var('LIBPL'))