diff options
author | Robin Dunn <robin@alldunn.com> | 2013-07-08 10:14:31 -0700 |
---|---|---|
committer | Robin Dunn <robin@alldunn.com> | 2013-07-20 16:05:52 -0700 |
commit | 262e1cc90af9174d7099826068707d97209fe6e7 (patch) | |
tree | 805f31ffa96ca260c03118791538d9e1d4559d93 /setup.py | |
parent | f9e4f1b8054687dc4e16ed576dd1a10c62907994 (diff) |
Allow either a _d or a non _d library for debug builds.
This allows a debug PySide to be built with a non-debug Python.
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -377,9 +377,17 @@ class pyside_build(_build): if sys.version_info[0] > 2: lib_suff = getattr(sys, 'abiflags', None) else: # Python 2 - lib_suff = dbgPostfix + lib_suff = '' lib_exts.append('.so.1') lib_exts.append('.a') # static library as last gasp + + if sys.version_info[0] == 2 and dbgPostfix: + # For Python2 add a duplicate set of extensions combined with + # the dbgPostfix, so we test for both the debug version of + # the lib and the normal one. This allows a debug PySide to + # be built with a non-debug Python. + lib_exts = [dbgPostfix + e for e in lib_exts] + lib_exts + libs_tried = [] for lib_ext in lib_exts: lib_name = "libpython%s%s%s" % (py_version, lib_suff, lib_ext) |