This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author haubi
Recipients David.Edelsohn, eric.araujo, haubi, larry, pitrou, python-dev
Date 2014-06-06.15:23:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1402068203.44.0.301716588605.issue18235@psf.upfronthosting.co.za>
In-reply-to
Content
Hmm... instead of reversing the order while keeping in _generate_posix_vars(), feels like it would have been better to move the code from 2000 back to _init_posix() where it originally was, without changing the order - because now for sysconfig within Python build, the working B-value of LDSHARED is lost.

Something like (note the function names):

--- a/Lib/sysconfig.py  Fri Jun 06 01:23:53 2014 -0500
+++ b/Lib/sysconfig.py  Fri Jun 06 17:11:02 2014 +0200
@@ -364,11 +364,6 @@ def _generate_posix_vars():
         if hasattr(e, "strerror"):
             msg = msg + " (%s)" % e.strerror
         raise OSError(msg)
-    # On AIX, there are wrong paths to the linker scripts in the Makefile
-    # -- these paths are relative to the Python source, but when installed
-    # the scripts are in another directory.
-    if _PYTHON_BUILD:
-        vars['BLDSHARED'] = vars['LDSHARED']
 
     # There's a chicken-and-egg situation on OS X with regards to the
     # _sysconfigdata module after the changes introduced by #15298:
@@ -409,6 +404,11 @@ def _init_posix(vars):
     # _sysconfigdata is generated at build time, see _generate_posix_vars()
     from _sysconfigdata import build_time_vars
     vars.update(build_time_vars)
+    # On AIX, we have different paths for building the Python modules
+    # relative to the Python source, and building third party modules
+    # after installing the Python dist.
+    if _PYTHON_BUILD:
+        vars['LDSHARED'] = vars['BLDSHARED']
 
 def _init_non_posix(vars):
     """Initialize the module as appropriate for NT"""
History
Date User Action Args
2014-06-06 15:23:23haubisetrecipients: + haubi, pitrou, larry, eric.araujo, python-dev, David.Edelsohn
2014-06-06 15:23:23haubisetmessageid: <1402068203.44.0.301716588605.issue18235@psf.upfronthosting.co.za>
2014-06-06 15:23:23haubilinkissue18235 messages
2014-06-06 15:23:22haubicreate