[python-win32] Building pywin32 with the free MS toolkitcompiler

Roger Upole rwupole at msn.com
Wed Apr 19 13:39:11 CEST 2006


Mark Hammond wrote:
>> On 4/17/06, Paul Moore <p.f.moore at gmail.com> wrote:
>> > On 4/16/06, Paul Moore <p.f.moore at gmail.com> wrote:
>> > > I tried building one for myself, but I'm missing some critical
>> > > dependencies (dsound.h?)
>> >
>> > I'm assuming this is from the DirectX SDK, which I'm in the process of
>> > downloading now to try it out. Are there any other downloads I should
>> > get in order to build pywin32? (I have the platform SDK - the setup.py
>> > doesn't mention any others as still being needed, but then again, it
>> > didn't mention the DirectX one either...)
>>
>> Looks like atlbase.h is needed in win32netuse and win32netuser. That's
>> annoying, as it's not freely available, as far as I know.
>>
>> It's possible taht ATL isn't actually needed, though - commenting the
>> includes out results in a successful compile. The link fails with an
>> odd error, though -
> 
> Removing atlbase.h just meant that advapi32.lib needed to be added to the
> link command-line - presumably the ATL headers automatically caused that to
> happen.  I've just checked in a fix for that and removed that header.
> 
>> If I comment out win32net from setup.py, I hit a problem in
>> win32wnet\PyNetresource.cpp, which uses ATL for Unicode conversion
>> macros.
> 
> These conversion macros are fairly easy (but not search-replace easy) to
> change, and I do it as I find it necessary.
> 

I've removed the ATL macros from win32wnet. (checkin messages are still bouncing)

           Roger
 


More information about the Python-win32 mailing list