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
This commit is contained in:
David Wettstein 2021-09-10 18:41:20 +02:00 committed by GitHub
parent e2aca4e753
commit 71e002761b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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",
"."