<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=990442315-06032008>Looks like MSVCCompiler hasn't been fixed yet to
support AMD64 architectures. __root is referenced by get_msvc_paths but wasn't
set in __init__.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=990442315-06032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=990442315-06032008>Known bug ?</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=990442315-06032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=990442315-06032008>My current settings:</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2><SPAN
class=990442315-06032008></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000
size=2>self.__product <SPAN class=990442315-06032008>-> </SPAN>Microsoft
SDK compiler 14.0<BR>self.__version <SPAN class=990442315-06032008>->
</SPAN>8.0<BR>self.__arch <SPAN class=990442315-06032008>->
</SPAN>AMD64</FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000
size=2></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2>class MSVCCompiler
(CCompiler) :</FONT></DIV>
<DIV dir=ltr align=left><SPAN class=990442315-06032008><FONT face=Arial
color=#800000 size=2>...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#800000 size=2>
def __init__ (self, verbose=0, dry_run=0,
force=0):<BR> CCompiler.__init__
(self, verbose, dry_run, force)<BR>
self.__version =
get_build_version()<BR> self.__arch =
get_build_architecture()<BR> if
self.__arch ==
"Intel":<BR> #
x86<BR> if
self.__version >=
7:<BR>
self.__root =
r"Software\Microsoft\VisualStudio"<BR>
self.__macros =
MacroExpander(self.__version)<BR>
else:<BR>
self.__root =
r"Software\Microsoft\Devstudio"<BR>
self.__product = "Visual Studio version %s" %
self.__version<BR>
else:<BR> #
Win64. Assume this was built with the platform
SDK<BR>
self.__product = "Microsoft SDK compiler %s" % (self.__version +
6)<BR></FONT></DIV>
<DIV><FONT face=Arial color=#800000 size=2> def
get_msvc_paths(self, path,
platform='x86'):<BR> """Get a list of
devstudio directories (include, lib or path).</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#800000
size=2> Return a list of
strings. The list will be empty if unable
to<BR> access the registry or
appropriate registry keys not
found.<BR> """</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#800000
size=2> if not
_can_read_reg:<BR>
return []</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#800000
size=2> path = path + "
dirs"<BR> if self.__version >=
7:<BR></FONT><STRONG><FONT face=Arial color=#800000
size=2> key =
(r"%s\%0.1f\VC\VC_OBJECTS_PLATFORM_INFO\Win32\Directories"<BR>
% (self.__root,
self.__version)) <SPAN
class=990442315-06032008><< line 616</SPAN><BR></FONT></STRONG><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> python-win32-bounces@python.org
[mailto:python-win32-bounces@python.org] <B>On Behalf Of </B>Marc-André
Belzile<BR><B>Sent:</B> March 5, 2008 6:42 PM<BR><B>To:</B>
python-win32@python.org<BR><B>Subject:</B> [python-win32] Building pywin32 on
Vista 64<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=958312521-05032008>Hello,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=958312521-05032008></SPAN></FONT><FONT
face=Arial size=2><SPAN class=958312521-05032008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=958312521-05032008>I'm trying to
build pywin32 (2.5.210.0) on Vista 64 (AMD64) with VS
2005.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=958312521-05032008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=958312521-05032008>I'm stucked right at
the beginning of the process with this error :</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=958312521-05032008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=958312521-05032008>File
"C:\Python25\lib\distutils\msvccompiler.py", line 616, in get_msvc_paths %
(self.__root, self.__version))<BR>AttributeError: my_compiler instance has no
attribute '_MSVCCompiler__root'</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=958312521-05032008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=958312521-05032008>I did install the
windows server 2003 platform SDK (AMD64) and set <FONT face="Times New Roman"
size=3>both DISTUTILS_USE_SDK + </FONT> <FONT face="Times New Roman"
size=3>MSSdk </FONT>as advertised. Still no succcess.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=958312521-05032008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=958312521-05032008>Any ideas what could
go wrong ? </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=958312521-05032008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=958312521-05032008>Thank
you</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=958312521-05032008></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=958312521-05032008>-mab</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=958312521-05032008></SPAN></FONT> </DIV></BODY></HTML>