From: James <vi...@ro...> - 2011-03-17 21:45:47
|
I have a program I'm deploying with py2exe. I used to bundle the VS2008 redistributable, but that's annoying and I'd rather just bundle the necessary VS2008 dll/manifest files. I'm familiar with the wiki where it says: "For Python 2.6, the DLL you need is called MSVCR90.dll." "You need the same version that the Python interpreter was compiled with, which is version 9.0.21022.8." "You'll need the vcredist_x86.exe that contains the Microsoft Visual C++ 2008 Redistributable Package published 29-11-2007, so not the VS2008 SP1 one (tested with Python 2.7.1). " However, I'm able to run a python 2.6.6 py2exe program on a testing computer with Windows 7 w/o bundling any dlls. Using sysinternals Process Monitor, I can see which files python is accessing. It seems Python 2.6.6 is accessing the "9.0.30729.4974" version of msvcr90.dll and not the "9.0.21022.8" from the wiki. First - is this correct? Do newer python builds now use the VS2008 SP1 DLL's instead of the VS2008 ones? Second - does anyone know a link that shows what versions of windows include which DLL's? I know my XP dev machine has those DLL's, and my new Windows 7 testing machine do - but I'd rather know what the lowest common denominator is so I can bundle for that. Thanks! -James Y. |
Re: [Py2exe-users] My python 2.6 program seems to be using the
newerVisual Studio 2008 runtime, 9.0.
From: Fox, M. K <mic...@bo...> - 2011-03-18 16:15:58
|
You will be in violation of your license if you redistribute MSVCR90.dll separately, as was formerly suggested in the tutorial at http://www.py2exe.org/index.cgi/Tutorial#Step521 until I recently rewrote that section. You must distribute the entire Microsoft.VC90.CRT folder and all four files inside it without modification. I am running Python 2.7.1 and distributing applications with version 9.0.21022.8 of MSVCR90.dll - Mike Fox -----Original Message----- From: James [mailto:vi...@ro...] Sent: Thursday, March 17, 2011 2:15 PM To: py2...@li... Subject: [Py2exe-users] My python 2.6 program seems to be using the newerVisual Studio 2008 runtime, 9.0. I have a program I'm deploying with py2exe. I used to bundle the VS2008 redistributable, but that's annoying and I'd rather just bundle the necessary VS2008 dll/manifest files. I'm familiar with the wiki where it says: "For Python 2.6, the DLL you need is called MSVCR90.dll." "You need the same version that the Python interpreter was compiled with, which is version 9.0.21022.8." "You'll need the vcredist_x86.exe that contains the Microsoft Visual C++ 2008 Redistributable Package published 29-11-2007, so not the VS2008 SP1 one (tested with Python 2.7.1). " However, I'm able to run a python 2.6.6 py2exe program on a testing computer with Windows 7 w/o bundling any dlls. Using sysinternals Process Monitor, I can see which files python is accessing. It seems Python 2.6.6 is accessing the "9.0.30729.4974" version of msvcr90.dll and not the "9.0.21022.8" from the wiki. First - is this correct? Do newer python builds now use the VS2008 SP1 DLL's instead of the VS2008 ones? Second - does anyone know a link that shows what versions of windows include which DLL's? I know my XP dev machine has those DLL's, and my new Windows 7 testing machine do - but I'd rather know what the lowest common denominator is so I can bundle for that. Thanks! -James Y. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Py2exe-users mailing list Py2...@li... https://lists.sourceforge.net/lists/listinfo/py2exe-users |
Re: [Py2exe-users] My python 2.6 program seems to be using the
newerVisual Studio 2008 runtime, 9.0.
From: James <vi...@ro...> - 2011-03-18 16:30:47
|
> You will be in violation of your license if you redistribute MSVCR90.dll separately, as was formerly suggested in the tutorial at http://www.py2exe.org/index.cgi/Tutorial#Step521 until I recently rewrote that section. You must distribute the entire Microsoft.VC90.CRT folder and all four files inside it without modification. > I am running Python 2.7.1 and distributing applications with version 9.0.21022.8 of MSVCR90.dll Hi Mike, Yes, I'm bundling all 4 files unmodified. I followed the instructions on the wiki tutorial about bundling & folder structure. However, my confusion was about runtime versions. I can see that my py2exe program (and indeed my dev machine's python installation) use the system-level (c:\windows\winsxs\) VS2008 SP1 runtimes instead of the mentioned VS2008 ones. I just wondered if this had changed for the latest Python versions. Do you have the SP1 runtimes installed on your system? Maybe it's just a matter of python using whatever's available on the system. I've got it working for now, so hopefully it'll just keep working. -James Y. |
From: James <vi...@ro...> - 2011-03-18 16:23:43
|
2011/3/18 Jacek Kałucki: > I noticed this behaviour too. > Although I can't see any negative symptoms so far. > It could be expected that SP1 library is backward compatible, but who knows. > I can see may applications on my laptop with bundled pre SP1 libraries that > uses new, SP1 system provided libraries instead. Interesting. So it seems like these programs automatically use the newer SP1 runtimes, even if they're bundled with the older 2008 non-SP1 runtimes? That's what I'm seeing with my program. At any rate, it seems to work fine using the system (winsxs) SP1 runtimes. I was just confused because the docs state that I will need the non-SP1 runtimes, and I'm pretty sure that when I previously tried this (on XP & Vista), it would complain and not use the SP1 runtimes. Maybe it's different on Win7? -James Y. |
Re: [Py2exe-users] My python 2.6 program seems to be using
thenewer Visual Studio 2008 runtime, 9.0.
From: Fox, M. K <mic...@bo...> - 2011-03-18 16:35:58
|
I'm on WinXP so I don't know the answer to your question. -----Original Message----- From: James [mailto:vi...@ro...] Sent: Friday, March 18, 2011 9:22 AM To: Jacek Kałucki Cc: py2...@li... Subject: Re: [Py2exe-users] My python 2.6 program seems to be using thenewer Visual Studio 2008 runtime, 9.0. 2011/3/18 Jacek Kałucki: > I noticed this behaviour too. > Although I can't see any negative symptoms so far. > It could be expected that SP1 library is backward compatible, but who knows. > I can see may applications on my laptop with bundled pre SP1 libraries that > uses new, SP1 system provided libraries instead. Interesting. So it seems like these programs automatically use the newer SP1 runtimes, even if they're bundled with the older 2008 non-SP1 runtimes? That's what I'm seeing with my program. At any rate, it seems to work fine using the system (winsxs) SP1 runtimes. I was just confused because the docs state that I will need the non-SP1 runtimes, and I'm pretty sure that when I previously tried this (on XP & Vista), it would complain and not use the SP1 runtimes. Maybe it's different on Win7? -James Y. ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Py2exe-users mailing list Py2...@li... https://lists.sourceforge.net/lists/listinfo/py2exe-users |
From: Jacek K. <la...@rz...> - 2011-03-18 18:16:45
|
Użytkownik James napisał: > Interesting. So it seems like these programs automatically use the > newer SP1 runtimes, even if they're bundled with the older 2008 > non-SP1 runtimes? That's what I'm seeing with my program. > > At any rate, it seems to work fine using the system (winsxs) SP1 > runtimes. I was just confused because the docs state that I will need > the non-SP1 runtimes, and I'm pretty sure that when I previously tried > this (on XP& Vista), it would complain and not use the SP1 runtimes. > > Maybe it's different on Win7? > > My observations comes from Windows 7 64bit. Regards Jacek Kałucki |
From: Jacek K. <la...@rz...> - 2011-03-22 10:27:07
|
Użytkownik Jacek Kałucki napisał: > My observations comes from Windows 7 64bit. > > I noticed interesting behaviour. On my Windows 7 box, compiled Python executables works with libraries version 9.0.30729.1. But on Windows XP machines only 9.0.21022.8 version seems to be working. Regards Jacek Kałucki |