]> 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:31:07 +0000 (07:31 -0700)
committerGitHub <noreply@github.com>
Wed, 11 Mar 2020 14:31:07 +0000 (07:31 -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 305cb517d0f71d3bf6322af391ed965a3bffde3f..3eef7556299cf2c113363815c59c20d50dfa7459 100644 (file)
@@ -173,8 +173,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.build / "LICENSE.txt"
 
index 80221333bee6e136bc173814af4a5e9edd60f59a..51ae58b002fca697efb6746a985bc6f7bd4532c3 100644 (file)
@@ -218,7 +218,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>