]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46948: Fix launcher installer build failure due to first part of fix (GH-31920...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 16 Mar 2022 10:11:36 +0000 (03:11 -0700)
committerGitHub <noreply@github.com>
Wed, 16 Mar 2022 10:11:36 +0000 (11:11 +0100)
(cherry picked from commit 708812085355c92f32e547d1f1d1f29aefbbc27e)

Co-authored-by: Steve Dower <steve.dower@python.org>
Tools/msi/common.wxs

index d8f3cde99ab52a4263beeeddf11ee0b609c09734..4554e80014a2900f0f229ef8d0062833c330cd74 100644 (file)
@@ -61,6 +61,7 @@
     </Fragment>
 
     <Fragment>
+        <?ifdef PythonExeComponentGuid ?>
         <!-- Locate TARGETDIR automatically assuming we have executables installed -->
         <Property Id="TARGETDIR">
             <ComponentSearch Id="PythonExe_Directory" Guid="$(var.PythonExeComponentGuid)">
@@ -69,6 +70,7 @@
                 </DirectorySearch>
             </ComponentSearch>
         </Property>
+        <?endif ?>
         <Property Id="DetectTargetDir" Value="1" />
     </Fragment>