mirror of
https://github.com/python/cpython.git
synced 2025-11-09 22:16:39 +00:00
SF patch #1071739 (by Christos Georgiou)
This patch offers a better explanation in case the MS VC++ (free) toolkit is installed but the .NET Framework SDK is not.
This commit is contained in:
parent
f8c6e6a16b
commit
cb328f393e
1 changed files with 9 additions and 4 deletions
|
|
@ -124,10 +124,15 @@ class MacroExpander:
|
||||||
self.set_macro("VSInstallDir", vsbase + r"\Setup\VS", "productdir")
|
self.set_macro("VSInstallDir", vsbase + r"\Setup\VS", "productdir")
|
||||||
net = r"Software\Microsoft\.NETFramework"
|
net = r"Software\Microsoft\.NETFramework"
|
||||||
self.set_macro("FrameworkDir", net, "installroot")
|
self.set_macro("FrameworkDir", net, "installroot")
|
||||||
|
try:
|
||||||
if version > 7.0:
|
if version > 7.0:
|
||||||
self.set_macro("FrameworkSDKDir", net, "sdkinstallrootv1.1")
|
self.set_macro("FrameworkSDKDir", net, "sdkinstallrootv1.1")
|
||||||
else:
|
else:
|
||||||
self.set_macro("FrameworkSDKDir", net, "sdkinstallroot")
|
self.set_macro("FrameworkSDKDir", net, "sdkinstallroot")
|
||||||
|
except KeyError, exc: #
|
||||||
|
raise DistutilsPlatformError, \
|
||||||
|
("The .NET Framework SDK needs to be installed before "
|
||||||
|
"building extensions for Python.")
|
||||||
|
|
||||||
p = r"Software\Microsoft\NET Framework Setup\Product"
|
p = r"Software\Microsoft\NET Framework Setup\Product"
|
||||||
for base in HKEYS:
|
for base in HKEYS:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue