]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-39930: Convert error to warning for more silent failure (GH-18921)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 11 Mar 2020 14:30:25 +0000 (07:30 -0700)
committerGitHub <noreply@github.com>
Wed, 11 Mar 2020 14:30:25 +0000 (07:30 -0700)
Makes it an error to create a layout without vcruntime DLL
(cherry picked from commit fde44ae6d08d3df79554155b1cf079e73a8fabdd)

Co-authored-by: Steve Dower <steve.dower@python.org>
PC/layout/main.py
PCbuild/pyproject.props

index 910085c01bb2efe0f121364cd8cf1d192e301a35..4d47b2e78f3f2953c29b0508fac85a3c4b46edeb 100644 (file)
@@ -153,8 +153,12 @@ def get_layout(ns):
     if ns.include_stable:
         yield from in_build(PYTHON_STABLE_DLL_NAME)
 
+    found_any = False
     for dest, src in rglob(ns.build, "vcruntime*.dll"):
+        found_any = True
         yield dest, src
+    if not found_any:
+        log_error("Failed to locate vcruntime DLL in the build.")
 
     yield "LICENSE.txt", ns.source / "LICENSE"
 
index f1eac3641cc60bb436fedd4be59730ceccce9b69..d76dd74d8a80d5e1fb36c268bfa581ce81c7acea 100644 (file)
@@ -211,7 +211,7 @@ public override bool Execute() {
       <VCRuntimeDLL Include="$(VCRedistDir)\Microsoft.VC*.CRT\vcruntime*.dll" />
     </ItemGroup>
 
-    <Error Text="vcruntime14*.dll not found under $(VCInstallDir)" Condition="@(VCRuntimeDLL) == ''" />
+    <Warning Text="vcruntime14*.dll not found under $(VCInstallDir)" Condition="@(VCRuntimeDLL) == ''" />
     <Message Text="VCRuntimeDLL: @(VCRuntimeDLL)" Importance="high" />
   </Target>
 </Project>