mirror of
https://github.com/ScoopInstaller/Versions.git
synced 2026-09-07 16:07:37 +08:00
129 lines
5.1 KiB
JSON
129 lines
5.1 KiB
JSON
{
|
|
"version": "3.15.0rc2",
|
|
"description": "A programming language that lets you work quickly and integrate systems more effectively.",
|
|
"homepage": "https://www.python.org/",
|
|
"license": "Python-2.0",
|
|
"notes": "Allow applications and third-party installers to find python by running: \"$dir\\install-pep-514.reg\"",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": [
|
|
"https://www.python.org/ftp/python/3.15.0/python-3.15.0rc2-amd64.exe#/setup.exe",
|
|
"https://raw.githubusercontent.com/ScoopInstaller/Main/master/scripts/python/install-pep-514.reg",
|
|
"https://raw.githubusercontent.com/ScoopInstaller/Main/master/scripts/python/uninstall-pep-514.reg"
|
|
],
|
|
"hash": [
|
|
"a74bf15b3184ea885d39b4eb9b6fc4ac0a696d7bb605d879c024af4433fa72da",
|
|
"af18373f558f56a9823d1d9020421955d0f7cb67f67e2c0dbb1bd7aba6e7132b",
|
|
"65a46d5a9fec455b6fbc5d75f8a57cd5ee958d31873ef438766866a53759e9f6"
|
|
]
|
|
},
|
|
"32bit": {
|
|
"url": [
|
|
"https://www.python.org/ftp/python/3.15.0/python-3.15.0rc2.exe#/setup.exe",
|
|
"https://raw.githubusercontent.com/ScoopInstaller/Main/master/scripts/python/install-pep-514.reg",
|
|
"https://raw.githubusercontent.com/ScoopInstaller/Main/master/scripts/python/uninstall-pep-514.reg"
|
|
],
|
|
"hash": [
|
|
"844af9ba60837897222a836a59ab4c3ee50b151376031257f3e0df3c2b3e0f4d",
|
|
"af18373f558f56a9823d1d9020421955d0f7cb67f67e2c0dbb1bd7aba6e7132b",
|
|
"65a46d5a9fec455b6fbc5d75f8a57cd5ee958d31873ef438766866a53759e9f6"
|
|
]
|
|
}
|
|
},
|
|
"pre_install": [
|
|
"$py_root = \"$dir\".Replace('\\', '\\\\')",
|
|
"$bit = '64'",
|
|
"if ($architecture -eq '32bit') { $bit = '32' }",
|
|
"'install-pep-514.reg', 'uninstall-pep-514.reg' | ForEach-Object {",
|
|
" $py_version = ($version -split '\\.')[0..1] -join '.'",
|
|
" $content = Get-Content \"$dir\\$_\"",
|
|
" $content = $content.Replace('$py_root', $py_root)",
|
|
" $content = $content.Replace('$py_version', $py_version)",
|
|
" $content = $content.Replace('$py_fullversion', $version)",
|
|
" $content = $content.Replace('$py_cleanVersion', $version -replace '\\.')",
|
|
" $content = $content.Replace('$py_arch', \"$bit\")",
|
|
" if ($global) {",
|
|
" $content = $content.Replace('HKEY_CURRENT_USER', 'HKEY_LOCAL_MACHINE')",
|
|
" }",
|
|
" Set-Content \"$dir\\$_\" $content -Encoding Ascii",
|
|
"}"
|
|
],
|
|
"installer": {
|
|
"script": [
|
|
"Expand-DarkArchive \"$dir\\setup.exe\" \"$dir\\_tmp\"",
|
|
"@('path.msi', 'pip.msi') | ForEach-Object {",
|
|
" Remove-Item \"$dir\\_tmp\\AttachedContainer\\$_\"",
|
|
"}",
|
|
"(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 = (Get-EnvVar -Name PATHEXT -Global) -replace ';.PYW?', ''",
|
|
" Set-EnvVar -Name PATHEXT -Value \"$pathext;.PY;.PYW\" -Global",
|
|
"}"
|
|
]
|
|
},
|
|
"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": {
|
|
"script": [
|
|
"if ($global) {",
|
|
" $pathext = (Get-EnvVar -Name PATHEXT -Global) -replace ';.PYW?', ''",
|
|
" Set-EnvVar -Name PATHEXT -Value \"$pathext\" -Global",
|
|
"}"
|
|
]
|
|
},
|
|
"bin": [
|
|
[
|
|
"python.exe",
|
|
"python3"
|
|
],
|
|
[
|
|
"Lib\\idlelib\\idle.bat",
|
|
"idle3"
|
|
],
|
|
"Lib\\idlelib\\idle.bat"
|
|
],
|
|
"env_add_path": [
|
|
"Scripts",
|
|
"."
|
|
],
|
|
"persist": [
|
|
"Scripts",
|
|
"Lib\\site-packages"
|
|
],
|
|
"checkver": {
|
|
"url": "https://www.python.org/downloads/windows/",
|
|
"regex": "(?is)Pre-releases.*?python-(3[\\d.]+(?:a|b|rc)[\\d]+)-"
|
|
},
|
|
"autoupdate": {
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://www.python.org/ftp/python/$matchHead/python-$version-amd64.exe#/setup.exe"
|
|
},
|
|
"32bit": {
|
|
"url": "https://www.python.org/ftp/python/$matchHead/python-$version.exe#/setup.exe"
|
|
}
|
|
},
|
|
"hash": {
|
|
"url": "https://www.python.org/downloads/release/python-$cleanVersion/",
|
|
"regex": "(?sm)$basename.*?$md5"
|
|
},
|
|
"bin": [
|
|
[
|
|
"python.exe",
|
|
"python$majorVersion"
|
|
],
|
|
[
|
|
"Lib\\idlelib\\idle.bat",
|
|
"idle$majorVersion"
|
|
]
|
|
]
|
|
}
|
|
}
|