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 martin.panter
Recipients David.Edelsohn, Michael.Felt, aixtools@gmail.com, eric.araujo, ericvw, haubi, larry, lemburg, martin.panter, pelson, python-dev
Date 2017-01-24.12:01:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1485259310.65.0.0359963943471.issue18235@psf.upfronthosting.co.za>
In-reply-to
Content
I don’t run AIX, but my understanding is there are three distinct branches (2.7, 3.5, and 3.6+). Some of the following is guessed, so please correct me if I am wrong:

Python 2.7:
_sysconfigdata.py incorrectly created with LDSHARED = Modules/ld_so_aix.
Result: Installed distutils fails (unless you’re in the build tree).
Fix: Apply David’s issue18235.patch + Michael H’s msg219888 fix.

Python 3.5:
David’s issue18235.patch already applied.
_sysconfigdata.py incorrectly created with BLDSHARED = $(LIBPL)/ld_so_aix, i.e. the installed location.
Distutils does not refer to _sysconfigdata.py.
Result: Distutils unaffected, but running from the build tree, sysconfig.get_config_var("LDSHARED") would incorrectly use the installed location.
Fix: Apply Michael H’s msg219888.

Python 3.6+:
Distutils does use _sysconfigdata*.py, thanks to revision 3fa8aebed636.
Result: Distutils shouldn’t work unless Python is already installed. Since the 3.6 and 3.x buildbots pass test_distutils, does that mean that both those versions of Python are already installed?
Fix: Should also be fixed by merging msg219888 from 3.5.

Marc-Andre, regarding configure.ac and absolute vs relative paths, I suggest you open a separate bug. That is an orthogonal issue, and this bug is already too complicated. But also keep in mind Issue 18235. You want the build tree, not the source tree.

Also, if you mean to drop the assignment in sysconfig, I think that will break in-tree usage of sysconfig (3.5+) and distutils (3.6+), unless Python happens to also be installed.
History
Date User Action Args
2017-01-24 12:01:50martin.pantersetrecipients: + martin.panter, lemburg, larry, eric.araujo, ericvw, haubi, python-dev, pelson, David.Edelsohn, Michael.Felt, aixtools@gmail.com
2017-01-24 12:01:50martin.pantersetmessageid: <1485259310.65.0.0359963943471.issue18235@psf.upfronthosting.co.za>
2017-01-24 12:01:50martin.panterlinkissue18235 messages
2017-01-24 12:01:50martin.pantercreate