Mark Hammond wrote:
> On 5/01/2010 6:13 AM, Jonathan Hartley wrote:
> > Hey all,
> >
> > Now that I sort-of understand how to bundle the MS Visual C runtime with
> > my py2exe applications (thanks to all who helped me get up to speed),
> > I'd like to update the tutorial page on the py2exe wiki, to add more
> > specific and up-to-date info about providing the MSVC runtime dll.
> >
> > For the moment, I'll post it as a new subsection near the bottom of the
> > Tutorial page. If that section gets long or detailed, it could be split
> > off as a new page.
>
> Cool!
>
> > === Python 2.4 or 2.5 ===
> > Note that MSVCR71.dll is provided by py2exe,
>
> I'm not sure that is quite true - I think it is provided by Python
> itself and now also by many other applications, but not py2exe. IOW, it
> will *usually* be available but not always.
>
> > and if you have rights
> > to redistribute, you need do nothing more. If you do not have rights
> > to distribute, your users (or your installer) need to run
> > vcredist_x86.exe, with a link to download it.
> > /HELP! Does it matter which version of vcredist_x86.exe they run in
> > this case? In particular, is MSVCR71.dll included in the visual
> > studio 2008 redistributable that will be referenced below? I'll
> > experiment to try and discover this tonight, but would appreciate
> > any input./
>
> They must run the "redistributables for VC2005" - none of the 2008
> redist packages include this DLL.
>
> > === Python 2.6 and newer ===
> > Note that you must provide MSVC90.dll yourself. Note how several
> > versions of this file exist, with the same filename, and 9.0.21022.8
> > is the one you need.
> >
> > If you have rights to redistribute, how to create a Win32 assembly
> > using the dll and a manifest file.
> >
> > If you do not have rights to redistribute, your users (or your
> > installer) need to run vcredist_x86.exe, with a link to download it.
> > (VC2008 version (not SPI which seems to install the wrong version of
> > MSVC90.dll ))
>
> That's correct - until Python uses VS2008 SP1 to build Python itself
> that is :)
>
> Cheers,
>
> Mark

Many thanks for that Mark. I posted my update to the wiki page, at:
http://www.py2exe.org/index.cgi/Tutorial

I realise this is a major change to a prominent page of the wiki, and I don't really know what I'm doing, so I quite understand if anyone wants to revert the changes and talk about them some more, or move the weighty new section onto it's own separate page. Let me know if I made any other errors, or if you think it sucks, I'm all ears.

Best regards all round,

        Jonathan
-- 
Jonathan Hartley      Made of meat.      http://tartley.com
tartley@tartley.com   +44 7737 062 225   twitter/skype: tartley