mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-05 00:01:20 +00:00
python: Do pip initialization in post_install (#3097)
This commit is contained in:
parent
f02f1cc402
commit
2772ba9b0a
@ -56,14 +56,16 @@
|
|||||||
"}",
|
"}",
|
||||||
"(Get-ChildItem \"$dir\\_tmp\\AttachedContainer\\*.msi\").FullName | ForEach-Object { Expand-MsiArchive $_ \"$dir\" }",
|
"(Get-ChildItem \"$dir\\_tmp\\AttachedContainer\\*.msi\").FullName | ForEach-Object { Expand-MsiArchive $_ \"$dir\" }",
|
||||||
"Remove-Item \"$dir\\_tmp\", \"$dir\\setup.exe\" -Force -Recurse",
|
"Remove-Item \"$dir\\_tmp\", \"$dir\\setup.exe\" -Force -Recurse",
|
||||||
"& \"$dir\\python.exe\" -E -s -m ensurepip -U --default-pip | Out-Null",
|
|
||||||
"Write-Output \"`e[0m\" # Reset ansi to prevent color leak from installer",
|
|
||||||
"if ($global) {",
|
"if ($global) {",
|
||||||
" $pathext = (env 'PATHEXT' $true) -replace ';.PYW?', ''",
|
" $pathext = (env 'PATHEXT' $true) -replace ';.PYW?', ''",
|
||||||
" env 'PATHEXT' $true \"$pathext;.PY;.PYW\"",
|
" env 'PATHEXT' $true \"$pathext;.PY;.PYW\"",
|
||||||
"}"
|
"}"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"post_install": [
|
||||||
|
"python -E -s -m ensurepip -U --default-pip | Out-Null",
|
||||||
|
"Write-Output \"`e[0m\" # Reset ansi to prevent color leak from installer"
|
||||||
|
],
|
||||||
"uninstaller": {
|
"uninstaller": {
|
||||||
"script": [
|
"script": [
|
||||||
"if ($global) {",
|
"if ($global) {",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user