You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
backport of the _sysconfigdata.py module (issue 13150) breaks the build on darwin #61714
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/doko42'closed_at=<Date2016-09-12.02:50:49.815>created_at=<Date2013-03-21.22:56:23.527>labels= ['build']
title='backport of the _sysconfigdata.py module (issue 13150) breaks the build on darwin'updated_at=<Date2016-09-12.02:50:49.814>user='https://github.com/doko42'
The backport of bpo-13150 to the 2.7 branch breaks the build on darwin. There is a special case for providing the _sysconfigdata module in _generate_posix_vars before get_platform is called (darwin only) and before the module is actually written.
However get_platform is called before, in site.addbuilddir(). Wondering if this call can either be avoided, or worked around.
Reverting the backport would also fix the breakage.
Is the addition of _sysconfigdata not a new feature? It changes the place where sysconfig (and distutils sysconfig?) looks for configuration data, and hence breaks all instructions that mention that you can change the Makefile in {sys.prefix}/lib/python2.7/config to globally affect the compilation flags (although there hopefully aren't a lot of those)
Activity
doko42 commentedon Mar 21, 2013
The backport of bpo-13150 to the 2.7 branch breaks the build on darwin. There is a special case for providing the _sysconfigdata module in _generate_posix_vars before get_platform is called (darwin only) and before the module is actually written.
However get_platform is called before, in site.addbuilddir(). Wondering if this call can either be avoided, or worked around.
options:
any other options?
doko42 commentedon Mar 21, 2013
untested work-around. we don't need the builddir to generate the _sysconfigdata.py.
benjaminp commentedon Mar 22, 2013
Backporting 4742e7aea2f5 would seem to be the simplest and most "correct" solution.
doko42 commentedon Mar 22, 2013
here's the backport, tested on Linux only. sorry, can't test this on MacOSX before Sunday.
ronaldoussoren commentedon Mar 22, 2013
Reverting the backport would also fix the breakage.
Is the addition of _sysconfigdata not a new feature? It changes the place where sysconfig (and distutils sysconfig?) looks for configuration data, and hence breaks all instructions that mention that you can change the Makefile in {sys.prefix}/lib/python2.7/config to globally affect the compilation flags (although there hopefully aren't a lot of those)
ronaldoussoren commentedon Mar 22, 2013
Guess what, I hadn't read the thread on this python-dev yet :-(
benjaminp commentedon Mar 22, 2013
I backed it out until it can be done without breaking OSX. d174cb3f5b9e
benjaminp commentedon Mar 23, 2013
Can landed corrected in 2.7.5.
doko42 commentedon Mar 23, 2013
tested the backport on MacOSX, fixing the build.
python-dev commentedon Apr 8, 2013
New changeset be3b4aa2ad28 by doko in branch '2.7':
http://hg.python.org/cpython/rev/be3b4aa2ad28