Skip to content

Commit

Permalink
python
Browse files Browse the repository at this point in the history
Will switch to python313 once 3.13.1 releases
  • Loading branch information
JourneyOver committed Oct 30, 2024
1 parent 56386d0 commit 46ba52e
Showing 1 changed file with 123 additions and 0 deletions.
123 changes: 123 additions & 0 deletions bucket/python312.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
{
"version": "3.12.7",
"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": {
"32bit": {
"url": "https://www.python.org/ftp/python/3.12.7/python-3.12.7.exe#/setup.exe",
"hash": "md5:5d5452249401822cb3ad1bce7105d5fd"
},
"64bit": {
"url": "https://www.python.org/ftp/python/3.12.7/python-3.12.7-amd64.exe#/setup.exe",
"hash": "md5:b51e0889be50c55fbdd809f4ad587120"
},
"arm64": {
"url": "https://www.python.org/ftp/python/3.12.7/python-3.12.7-arm64.exe#/setup.exe",
"hash": "md5:19bdd2de8a7ccb6f1115f85bc54c1764"
}
},
"pre_install": [
"$py_root = \"$dir\".Replace('\\', '\\\\')",
"$py_archLabel = '64-bit'",
"$bit = '64'",
"if ($architecture -eq '32bit') {",
" $py_archLabel = '32-bit'",
" $bit = '32'",
"}",
"if ($architecture -eq 'arm64') { $py_archLabel = 'ARM64' }",
"'install-pep-514.reg', 'uninstall-pep-514.reg' | ForEach-Object {",
" $py_version = ($version -split '\\.')[0..1] -join '.'",
" $content = Get-Content \"$bucketsdir\\main\\scripts\\python\\$_\"",
" $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_archLabel', $py_archLabel)",
" $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 'msiexec /a' 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 \"$([char]0x1b)[0m\" # Reset ansi to prevent color leak from installer"
],
"env_add_path": [
"Scripts",
"."
],
"bin": [
[
"python.exe",
"python3"
],
[
"python.exe",
"python312"
],
"Lib\\idlelib\\idle.bat",
[
"Lib\\idlelib\\idle.bat",
"idle3"
],
[
"Lib\\idlelib\\idle.bat",
"idle312"
]
],
"persist": [
"Scripts",
"Lib\\site-packages"
],
"uninstaller": {
"script": [
"if ($global) {",
" $pathext = (Get-EnvVar -Name PATHEXT -Global) -replace ';.PYW?', ''",
" Set-EnvVar -Name PATHEXT -Value \"$pathext\" -Global",
"}"
]
},
"checkver": {
"url": "https://www.python.org/downloads/windows/",
"regex": "python-(3\\.12\\.[\\d.]+)-"
},
"autoupdate": {
"hash": {
"url": "https://www.python.org/downloads/release/python-$cleanVersion/",
"regex": "(?sm)$basename.*?$md5"
},
"architecture": {
"32bit": {
"url": "https://www.python.org/ftp/python/$version/python-$version.exe#/setup.exe"
},
"64bit": {
"url": "https://www.python.org/ftp/python/$version/python-$version-amd64.exe#/setup.exe"
},
"arm64": {
"url": "https://www.python.org/ftp/python/$version/python-$version-arm64.exe#/setup.exe"
}
}
}
}

0 comments on commit 46ba52e

Please sign in to comment.