<br><br><div class="gmail_quote">On Thu, Mar 21, 2013 at 10:48 PM, Benjamin Peterson <span dir="ltr"><<a href="mailto:benjamin@python.org" target="_blank">benjamin@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2013/3/21 Matthias Klose <<a href="mailto:doko@ubuntu.com">doko@ubuntu.com</a>>:<br>
<div class="im">> I'd like to backport issue13150, the _sysconfigdata.py module to 2.7. My<br>
> motivation is not the improved startup time, but the ability to cross-build<br>
> extension modules using distutils/setuptools.  The basic idea is to use the<br>
> python interpreter of the build machine (the machine you build on), and the<br>
> _sysconfigdata.py for the host machine (the machine you build for).  This kind<br>
> of setup works fine as long as the setup.py for a third party package gets all<br>
> build related information from the sysconfig.py module, and not directly from os<br>
> or sys (e.g. sys.platform).<br>
><br>
> The patch for issue13150 doesn't change any API's, but only moves the<br>
> computation of the config vars from runtime to build time.  I'd like to avoid<br>
> backporting this to 3.2 as well, because the cross-build support is currently<br>
> only found in 2.7, 3.3 and the trunk.<br>
<br>
</div>This is a fairly small non-userfacing change, so okay.<br></blockquote><div><br></div><div>FWIW, we do the exact same thing in our (internal) Google Python 2.7 builds (because we're forbidden from having files named 'Makefile' and '*.h' in our production environment -- and also because of the startup time) and while we've seen the most obscure, internal changes cause failures in the most unexpected ways, we haven't seen anything broken or failing in any way by that change. (Not that I was expecting it, I'm just saying even I think this is a good idea ;)</div>
<div><br></div></div>-- <br>Thomas Wouters <<a href="mailto:thomas@python.org">thomas@python.org</a>><br><br>Hi! I'm a .signature virus! copy me into your .signature file to help me spread!