<div dir="ltr"><div>Primarily for non-windows platforms, but I also think for Windows users without any compilers or similar tools installed. There is also some discussion of removing some of the older toolchain-specific versions (leaving only -14), but that is a subject for another day.</div><div><br></div><div>Also I am not sure that bug report applies to 3.5/3.6/3.7.</div><div><br></div><div>Thanks,<br></div><div>Van</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Oct 18, 2018 at 11:26 AM Petr Viktorin <<a href="mailto:encukou@gmail.com">encukou@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 10/18/18 4:40 PM, Zachary Ware wrote:<br>
> On Thu, Oct 18, 2018 at 9:09 AM VanL <<a href="mailto:van.lindberg@gmail.com" target="_blank">van.lindberg@gmail.com</a>> wrote:<br>
>> Hi all,<br>
>><br>
>> I am looking into an issue associated with the wininst-*.exe files in the distutils/command subdirectory. It looks like these are the executable stubs used to create self-extracting zips for installation - but I am not 100% sure. It also looks like they include the calls to standard Windows functions to display the installer window.<br>
>><br>
>> I have a couple questions I need help with:<br>
>> 1) Am I correct about the function, and if not, what are they?<br>
> <br>
> You are correct.  IIUC, they are checked in to allow creating those<br>
> installers from non-Windows platforms.<br>
<br>
Is that the only reason for them?<br>
At least on Linux, bdist_wininst does not work since at least Python <br>
3.2, as it tries to use a Windows-only encoding internally.<br>
<a href="https://bugs.python.org/issue10945" rel="noreferrer" target="_blank">https://bugs.python.org/issue10945</a><br>
<br>
If they're only there for non-Windows platforms, they're useless.<br>
<br>
>> 2) Where did these come from, and where is their source code?<br>
> <br>
> Source can be found here:<br>
> <a href="https://github.com/python/cpython/tree/master/PC/bdist_wininst" rel="noreferrer" target="_blank">https://github.com/python/cpython/tree/master/PC/bdist_wininst</a><br>
> <br>
> The individual checked-in .exe files were each originally built by<br>
> whoever updated the Windows toolchain to a new version of MSVC<br>
> (Christian Heimes, Brian Curtin, or Steve Dower; though the oldest<br>
> ones were added by Thomas Heller, presumably using whatever the<br>
> current toolchain(s) was (were) at the time).  A few of them have been<br>
> rebuilt after bug fixes in the source since they were added, mostly by<br>
> the same people, though I also see Mark Hammond and Raymond Hettinger<br>
> in the history (and Georg Brandl via svnmerge).  I notice that there<br>
> are a few very minor code cleanups (the three latest commits here<br>
> <a href="https://github.com/python/cpython/commits/master/PC/bdist_wininst/install.c" rel="noreferrer" target="_blank">https://github.com/python/cpython/commits/master/PC/bdist_wininst/install.c</a>)<br>
> that have not made it into a rebuilt exe yet.<br>
> <br>
> FTR, we really ought to remove all but the 14.0 version from the<br>
> master branch.  We don't support building Python with any toolchain<br>
> older than 14.0 anymore, and the older toolchains are nigh impossible<br>
> to find anymore anyway.<br>
<br>
</blockquote></div>