[python-win32] building pywin32 for python 2.6...

Tim Roberts timr at probo.com
Mon Jan 5 23:01:25 CET 2009


Raymond Stewart wrote:
>
> I am having a hard time building Mark Hammond’s pywin32 extension with
> python 2.6.1. I followed the readme and used the setup.py. I have the
> latest Windows SDK installed, and the Direct X SDK installed as well.
> I am building on Vista. I have both Python 2.5 and 2.6 installed as
> well as VC2003, VC2005, and VC2008. I changes the path statement to
> point at \python26. Not sure what else I need to do. The docs are
> pretty thin on building configurations.
>
> Here is what I am getting…
>
> C:\Users\raymond.stewart\Desktop\pywin32-212>setup.py -q  build
>
> Building pywin32 2.5.212.0
>
> PyACL.cpp
>
> C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\specstrings.h(9)
> : fatal error C1083: Cannot open include file: 'sal.h': No such file
> or directory error: command '"C:\Program Files (x86)\Microsoft Visual
> Studio .NET 2003\Vc7\bin\cl.exe"' failed with exit status 2
>

You are using the very latest SDK (6001) but an old compiler (Visual
Studio 2003).  If you read the release notes, you'll see that the 6001
SDK no longer supports Visual Studio 2003.  You need to switch to VS2005
or VS2008.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list