diff --git a/bucket/python.json b/bucket/python.json index 6c07dd0144..ab3a2a1606 100644 --- a/bucket/python.json +++ b/bucket/python.json @@ -38,7 +38,11 @@ "@('path.msi', 'pip.msi') | ForEach-Object {", " Remove-Item \"$dir\\_tmp\\AttachedContainer\\$_\"", "}", - "(Get-ChildItem \"$dir\\_tmp\\AttachedContainer\\*.msi\").FullName | ForEach-Object { Expand-MsiArchive $_ \"$dir\" }", + "(Get-ChildItem \"$dir\\_tmp\\AttachedContainer\\*.msi\").FullName | ForEach-Object {", + " # appendpath.msi does not contain any file, which causes lessmsi extraction to fail", + " if($((Get-Item $_).Basename) -eq 'appendpath') { return }", + " Expand-MsiArchive $_ \"$dir\" ", + "}", "Remove-Item \"$dir\\_tmp\", \"$dir\\setup.exe\" -Force -Recurse", "if ($global) {", " $pathext = (env 'PATHEXT' $true) -replace ';.PYW?', ''",