mirror of
https://github.com/python/cpython.git
synced 2025-11-03 07:01:21 +00:00
Issue #25316: distutils raises OSError instead of DistutilsPlatformError when MSVC is not installed.
This commit is contained in:
parent
eda1955d82
commit
f0ccf02e56
2 changed files with 13 additions and 8 deletions
|
|
@ -28,15 +28,17 @@
|
||||||
from itertools import count
|
from itertools import count
|
||||||
|
|
||||||
def _find_vcvarsall(plat_spec):
|
def _find_vcvarsall(plat_spec):
|
||||||
with winreg.OpenKeyEx(
|
try:
|
||||||
winreg.HKEY_LOCAL_MACHINE,
|
key = winreg.OpenKeyEx(
|
||||||
r"Software\Microsoft\VisualStudio\SxS\VC7",
|
winreg.HKEY_LOCAL_MACHINE,
|
||||||
access=winreg.KEY_READ | winreg.KEY_WOW64_32KEY
|
r"Software\Microsoft\VisualStudio\SxS\VC7",
|
||||||
) as key:
|
access=winreg.KEY_READ | winreg.KEY_WOW64_32KEY
|
||||||
if not key:
|
)
|
||||||
log.debug("Visual C++ is not registered")
|
except OSError:
|
||||||
return None, None
|
log.debug("Visual C++ is not registered")
|
||||||
|
return None, None
|
||||||
|
|
||||||
|
with key:
|
||||||
best_version = 0
|
best_version = 0
|
||||||
best_dir = None
|
best_dir = None
|
||||||
for i in count():
|
for i in count():
|
||||||
|
|
|
||||||
|
|
@ -34,6 +34,9 @@ Core and Builtins
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #25316: distutils raises OSError instead of DistutilsPlatformError
|
||||||
|
when MSVC is not installed.
|
||||||
|
|
||||||
- Issue #23972: Updates asyncio datagram create method allowing reuseport
|
- Issue #23972: Updates asyncio datagram create method allowing reuseport
|
||||||
and reuseaddr socket options to be set prior to binding the socket.
|
and reuseaddr socket options to be set prior to binding the socket.
|
||||||
Mirroring the existing asyncio create_server method the reuseaddr option
|
Mirroring the existing asyncio create_server method the reuseaddr option
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue