From 0889cc5352e7906c7953ebecf48e3ab267e547d5 Mon Sep 17 00:00:00 2001 From: Issac Lin Date: Thu, 5 May 2022 20:06:34 +0800 Subject: [PATCH] python@3.10.4: Modify installer This avoids the problem in #489 preemptively --- bucket/python.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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?', ''",