On Saturday, January 24, 2015, Brett Cannon <<a href="mailto:brett@python.org">brett@python.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">On Fri Jan 23 2015 at 5:45:28 PM Gregory P. Smith <<a href="javascript:_e(%7B%7D,'cvml','greg@krypto.org');" target="_blank">greg@krypto.org</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote">On Fri Jan 23 2015 at 11:20:02 AM M.-A. Lemburg <<a href="javascript:_e(%7B%7D,'cvml','mal@egenix.com');" target="_blank">mal@egenix.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 23.01.2015 19:48, Matthias Klose wrote:<br>
> On 01/23/2015 06:30 PM, Cyd Haselton wrote:<br>
>> Related to my earlier question regarding building Python on Android<br>
>> and an undefined reference to dlopen error...I have the following<br>
>> question:  Is it possible to build and install Python without having<br>
>> to build and install...or use...distutils?<br>
>><br>
>> Some background:<br>
>> I can build the python interpreter on my device, and I can build a<br>
>> bunch of modules.  The problem appears when make reaches the part<br>
>> where setup.py is used to build and import modules...specifically when<br>
>> setup.py attempts to import distutils.core.<br>
><br>
> you can do this using Setup.local. This works for me building additional<br>
> extensions as builtins.  It might require some tweaking to build everything.<br>
<br>
You may want to have a look at the Setup files we're using<br>
in eGenix PyRun, which uses them to force static builds of the<br>
various built-in extensions.<br>
<br>
Look for these files:<br>
<br>
PyRun/Runtime/Setup.PyRun-2.7<br>
PyRun/Runtime/Setup.PyRun-3.4<br>
<br>
in the source archives:<br>
<br>
<a href="http://www.egenix.com/products/python/PyRun/" target="_blank">http://www.egenix.com/<u></u>products/python/PyRun/</a><br>
<br>
> Otoh, I would like to get rid off the setup.py altogether (/me ducks ...).<br>
<br>
Why ? It's great for finding stuff on your system and configuring<br>
everything without user intervention (well, most of the time :-)).<br></blockquote><div><br></div></div></div><div dir="ltr"><div class="gmail_quote"><div>Because our setup.py is a nightmare of arbitrary code run in a linear fashion with ad-hoc checks for things that are unlike how any other project on the planet determines what is available on your system.  It may have seemed "great" when it was created in 2001.  It really shows its age now.</div><div><br></div><div>It defeats build parallelism and dependency declaration.</div><div>It also prevents cross compilation.</div><div><br></div><div>Building an interpreter with a limited standard library on your build host so that you can run said interpreter to have it drive the remainder of your build is way more self hosting that we rightfully need to be for CPython.</div></div></div></blockquote><div><br></div><div>So are you suggesting to add the build rules to configure and the Makefile -- and Windows build file -- in order to drop setup.py?</div></div></div></blockquote><div><br></div><div>Windows already doesn't use setup.py. There are a lot more modules built-in on Windows, and others have their own project files; distutils isn't used at all. </div><br><br>-- <br>Sent from Gmail Mobile<br>