It would be great if you could add the ability to specify a specific
copy of the pythonxx.dll file that gets used by py2exe and similar
utilities.
Motivation: In Python 2.6, you can edit the resource header of
python26.dll in such a way as to be able to ship the msvcr90.dll in an
application's root folder, eg. no more ugly Microsoft.VC90.CRT
folders. (Background on how to do this follows my signature).
Thank you for all your contributions to the wxPython and Py2exe
communities!!
Regards,
Malcolm
The following is from "Waldemar Osuch" <waldema...@gmail.com> in a
thread on the python-list mailing list:
The following approach was gleaned from a thread at PIL mailing list:
http://mail.python.org/pipermail/image-sig/2009-October/005916.html
1. Edit python26.dll in order to remove dependency references
Use ResourceHacker for the edit process:
http://www.angusj.com/resourcehacker/
Find the <dependency> section of the manifest and remove everything
between <dependentAssembly> tags
Before:
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.VC90.CRT"
version="9.0.21022.8" processorArchitecture="x86"
publicKeyToken="1fc8b3b9a1e18e3b">
</assemblyIdentity>
</dependentAssembly>
</dependency>
After:
<dependency>
<dependentAssembly>
</dependentAssembly>
</dependency>
2. Then drop msvcr90.dll in the same directory as the py2exe produced
executable
- lib/*.pyo
- msvcr90.dll
- python26.dll <-- tweaked
- app.exe
On 22 February 2010 23:39, Malcolm wrote:
> Hi Andrea,
>
> It would be great if you could add the ability to specify a specific
> copy of the pythonxx.dll file that gets used by py2exe and similar
> utilities.
>
> Motivation: In Python 2.6, you can edit the resource header of
> python26.dll in such a way as to be able to ship the msvcr90.dll in an
> application's root folder, eg. no more ugly Microsoft.VC90.CRT
> folders. (Background on how to do this follows my signature).
>
> Thank you for all your contributions to the wxPython and Py2exe
> communities!!
If I understand correctly, you can already do that in GUI2Exe. Simply
select the menu "Options" => "Change Python version" and you should be
set to use the version you like.
Andrea.
"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.alice.it/infinity77/
http://thedoomedcity.blogspot.com/