From 71e002761b798f61d55ff0eec267efd3da3d4465 Mon Sep 17 00:00:00 2001 From: David Wettstein Date: Fri, 10 Sep 2021 18:41:20 +0200 Subject: [PATCH] python: persist user installed libs and scripts (#2144) * python: persist user installed libs and scripts Resolve #1680, #772 * python: remove bin entries to avoid duplicated exe * python: add py.exe launcher Close #2424, #377, #2181 --- bucket/python.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bucket/python.json b/bucket/python.json index 9575070231..78d105f0d8 100644 --- a/bucket/python.json +++ b/bucket/python.json @@ -46,7 +46,7 @@ "installer": { "script": [ "Expand-DarkArchive \"$dir\\setup.exe\" \"$dir\\_tmp\"", - "@('launcher.msi', 'path.msi', 'pip.msi') | ForEach-Object {", + "@('path.msi', 'pip.msi') | ForEach-Object {", " Remove-Item \"$dir\\_tmp\\AttachedContainer\\$_\"", "}", "(Get-ChildItem \"$dir\\_tmp\\AttachedContainer\\*.msi\").FullName | ForEach-Object { Expand-MsiArchive $_ \"$dir\" }", @@ -67,8 +67,6 @@ ] }, "bin": [ - "python.exe", - "pythonw.exe", [ "python.exe", "python3" @@ -79,6 +77,10 @@ "idle3" ] ], + "persist": [ + "Scripts", + "Lib\\site-packages" + ], "env_add_path": [ "Scripts", "."