[pywin32-bugs] [ pywin32-Feature Requests-2802102 ] Cannot build pywin32 on Vista using VC++ Expres
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2011-04-01 02:26:05
|
Feature Requests item #2802102, was opened at 2009-06-06 03:43 Message generated for change (Comment added) made by native_api You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=2802102&group_id=78018 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 1 Private: No Submitted By: Vernon Cole (kf7xm) Assigned to: Nobody/Anonymous (nobody) Summary: Cannot build pywin32 on Vista using VC++ Express Edition Initial Comment: I always try to use only free stuff -- especially if I have to buy things from Micro$oft -- so, just as an experiment, I attempted to build pywin32 (current CVS as of 2009-06-05) using the current free compiler on my Vista laptop. It worked much better than I expected, but setup.py finally crashed with: v v v v v Microsoft Windows [Version 6.0.6002] ... C:\pywin32>c:\python26\python.exe setup.py build Building pywin32 2.6.213.1 running build running build_py running build_ext Found version 0x600 in C:\Program Files\Microsoft SDKs\Windows\v6.0A\include\SDK DDKVER.H building 'perfmondata' extension mc.exe -h win32\src\perfmon -r build\temp.win32-2.6\Release\win32\src\perfmon wi n32\src\perfmon\PyPerfMsgs.mc error: command 'mc.exe' failed: No such file or directory C:\pywin32> ^ ^ ^ ^ ^ Environment: Vista Home Basic with SP2 CPython 2.6.2 Microsoft Visual C++ 2008 Express Edition with SP1 - ENU Microsoft Visual C++ 2008 Redistributable - x86 9.0.30729 Microsoft Windows SDK for Visual Studio 2008 Headers and Libraries Microsoft Windows SDK for Visual Studio 2008 SP1 Express Tools for .NET Framework - enu Microsoft Windows SDK for Visual Studio 2008 SP1 Express Tools for Win32 -- Vernon Cole ---------------------------------------------------------------------- Comment By: Vano (native_api) Date: 2011-04-01 06:26 Message: Install the standalone SDK (components: headers, libraries for <your arch>, compilers, win32 development tools) _after_ VS2008 and you are good to go. ( I checked that build 216 is compiled ok in this environment. MFC-related extensions weren't built cuz MFC headers and libraries are only available in paid editions of VS ) Building for x64 python may require a patch for distutils since vcvarsall.bat in vs2008 Express produces a broken environment in this case. The patch, vcvars4.diff , is available at http://bugs.python.org/issue7511 The resolution to this ticket should thus be the inclusion of the 1st two paragraphs of this comment into compilation readme. ---------------------------------------------------------------------- Comment By: Vano (native_api) Date: 2011-04-01 04:37 Message: mc.exe is missing from SDK that comes with VS 2008 (M$ support ticket on the issue - http://connect.microsoft.com/VisualStudio/feedback/details/374833/mc-exe-is-missing-in-the-visual-studio-2008-express-sdk ) They added it to the next release, VS2010. It's also present in the standalone WSDK package for Windows 7, compatible with VS 2008 (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c17ba869-9671-4330-a63e-1fd44e0e2505), item "win32 development tools". Running setup.py from withing SDK cmd shell is enough to find mc.exe ---------------------------------------------------------------------- Comment By: Vernon Cole (kf7xm) Date: 2010-08-30 21:21 Message: Mark: Yes, that change would be appropriate. I tried, in vain, to find a redistributable copy of 'mc.exe'. I don't know enough about the build process to know whether in can be eliminated, worked around, or replaced. -- Vernon ---------------------------------------------------------------------- Comment By: Mark Hammond (mhammond) Date: 2010-08-30 04:37 Message: Moving to feature requests - there is no patch attached - was that the intent? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551957&aid=2802102&group_id=78018 |