~ubuntu-branches/ubuntu/saucy/python2.7/saucy-updates

« back to all changes in this revision

Viewing changes to debian/patches/distutils-sysconfig.diff

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-03-08 14:30:55 UTC
  • Revision ID: package-import@ubuntu.com-20130308143055-gyzjn6vv7szlqsiw
Tags: 2.7.3-16ubuntu1
* Merge with Debian; remaining changes:
  - Build-depend on python:any instead of python.
* Update symbols files.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# DP: Allow setting BASECFLAGS, OPT and EXTRA_LDFLAGS (like, CC, CXX, CPP,
2
2
# DP: CFLAGS, CPPFLAGS, CCSHARED, LDSHARED) from the environment.
3
3
 
4
 
Index: b/Lib/distutils/sysconfig.py
5
 
===================================================================
6
4
--- a/Lib/distutils/sysconfig.py
7
5
+++ b/Lib/distutils/sysconfig.py
8
 
@@ -153,8 +153,8 @@
9
 
     varies across Unices and is stored in Python's Makefile.
10
 
     """
11
 
     if compiler.compiler_type == "unix":
 
6
@@ -173,8 +173,8 @@
 
7
                 _osx_support.customize_compiler(_config_vars)
 
8
                 _config_vars['CUSTOMIZED_OSX_COMPILER'] = 'True'
 
9
 
12
10
-        (cc, cxx, opt, cflags, ccshared, ldshared, so_ext, ar, ar_flags) = \
13
11
-            get_config_vars('CC', 'CXX', 'OPT', 'CFLAGS',
14
12
+        (cc, cxx, opt, cflags, extra_cflags, basecflags, ccshared, ldshared, so_ext, ar, ar_flags) = \
16
14
                             'CCSHARED', 'LDSHARED', 'SO', 'AR',
17
15
                             'ARFLAGS')
18
16
 
19
 
@@ -200,8 +200,13 @@
 
17
@@ -191,8 +191,13 @@
20
18
             cpp = cc + " -E"           # not always
21
19
         if 'LDFLAGS' in os.environ:
22
20
             ldshared = ldshared + ' ' + os.environ['LDFLAGS']