Marc-Andre Lemburg added the comment: On 24.01.2017 15:23, Michael Felt wrote: > As far as issue10656 and this issue are concerned: > > Python-3.4 is out of context (but 3.4.6 was just released) - and does not > work with 'out of tree' builds. > > The other versions: 2.7.13, 3.5.3 and 3.6.0 do build out-of-tree. > Note 3.5.3 and 3.6.0 use a different name for sysconfigdata.py
I'm not sure what you mean with "out of tree". When building Python, you are supposed to use the source code directory as work dir. > Notes: > > FYI: regarding build and src in different directories > > Not working... > > unable to execute '../src/Python-3.4.6/Modules/ld_so_aix': No such file or > directory > unable to execute '../src/Python-3.4.6/Modules/ld_so_aix': No such file or > directory > many many times > > Concludes with: > ImportError: No module named 'time' > make: 1254-004 The error code from the last command is 1. > make: 1254-005 Ignored error code 1 from last command. > ../src/Python-3.4.6/install-sh: ../src/Python-3.4.6/Modules/ld_so_aix does > not exist > make: 1254-004 The error code from the last command is 1. > > root@x064:[/data/prj/python/Python-3.4.6]find . -name _sysconfigdata.py -ls > -exec grep LDSHARED {} \; > 48049316 19 -rw-r----- 1 root felt 19209 Jan 24 13:55 > ./build/lib.aix-5.3-3.4/_sysconfigdata.py > 'BLDSHARED': '/opt/lib/python3.4/config/ld_so_aix xlc_r ' > 'LDSHARED': '/opt/lib/python3.4/config/ld_so_aix xlc_r ' This is strange: where does the "../src/Python-3.4.6/Modules/ld_so_aix" originate if the paths in the sysconfig file are absolute ? > +++++++ Working ++++++++ > > Working: 2.7.13 -- Note: the 'lines' in sysconfig.py are removed: > root@x064:[/data/prj/python/Python-2.7.13.0]find . -name _sysconfigdata\*.py > -ls -exec grep LDSHARED {} \; > 48038426 16 -rw-r----- 1 root felt 15807 Jan 24 13:36 > ./build/lib.aix-5.3-2.7/_sysconfigdata.py > 'BLDSHARED': 'Modules/ld_so_aix xlc_r -bI:Modules/python.exp', > 'LDSHARED': '/opt/lib/python2.7/config/ld_so_aix xlc_r > -bI:/opt/lib/python2.7/config/python.exp', BLDSHARED should be fixed to use an absolute path, I guess. > Working: 3.5.3 > 48049196 21 -rw-r----- 1 root felt 20640 Jan 24 13:55 > ./build/lib.aix-5.3-3.5/_sysconfigdata.py > 'BLDSHARED': '/opt/lib/python3.5/config-3.5m/ld_so_aix xlc_r ' > 'LDSHARED': '/opt/lib/python3.5/config-3.5m/ld_so_aix xlc_r ' Here BLDSHARED is wrong, but shouldn't do any harm since it's only used for building Python itself, not for extension modules. > Working: 3.6.0 -- Note new file name!! > root@x064:[/data/prj/python/Python-3.6.0]find . -name _sysconfigdata\*.py -ls > -exec grep LDSHARED {} \; > 47794146 20 -rw-r----- 1 root felt 20394 Jan 24 13:49 > ./build/lib.aix-5.3-3.6/_sysconfigdata_m_aix5_.py > 'BLDSHARED': 'Modules/ld_so_aix xlc_r -bI:Modules/python.exp', > 'LDSHARED': '/opt/lib/python3.6/config-3.6m/ld_so_aix xlc_r ' This looks odd and like a regression. Again, the path should be absolute and point to the build tree, not the installation tree. PS: The BLDSHARED setting in sysconfig is not really relevant. It's only there because we have it in the Makefile. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18235> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com