Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build pywin32 on Vista using VC++ Express Edition #833

Closed
ghost opened this issue Jun 5, 2009 · 6 comments
Closed

Cannot build pywin32 on Vista using VC++ Express Edition #833

ghost opened this issue Jun 5, 2009 · 6 comments

Comments

@ghost
Copy link

ghost commented Jun 5, 2009

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

Reported by: kf7xm

Original Ticket: pywin32/feature-requests/74

@ghost
Copy link
Author

ghost commented Aug 30, 2010

Moving to feature requests - there is no patch attached - was that the intent?

Original comment by: mhammond

@ghost
Copy link
Author

ghost commented Aug 30, 2010

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

Original comment by: kf7xm

@ghost
Copy link
Author

ghost commented Apr 1, 2011

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

Original comment by: native_api

@ghost
Copy link
Author

ghost commented Apr 1, 2011

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.

Original comment by: native_api

@ghost ghost assigned ghost and unassigned ghost Oct 24, 2017
@vernondcole vernondcole self-assigned this Feb 7, 2018
@Avasam
Copy link
Collaborator

Avasam commented Mar 14, 2024

C:\pywin32>c:\python26\python.exe setup.py build

Note to readers that python setup.py and the use of setup.py as a command line tool are deprecated. pywin32 itself needs to move away from it. #2208

@Avasam
Copy link
Collaborator

Avasam commented Mar 16, 2024

Support for Vista has been removed in #1874

@Avasam Avasam closed this as completed Mar 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants