-
-
Notifications
You must be signed in to change notification settings - Fork 202
/
python-alpha.json
128 lines (128 loc) · 4.99 KB
/
python-alpha.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
"version": "3.12.0a1",
"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.12.0/python-3.12.0a1-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": [
"md5:4f3190ac3675b3364e7cdc401d3cb23d",
"c2611c8010979a47cdeea1af17d5061d8df40c5356fd8c2f3ba9492d516a99d1",
"d9309423b693ed63aea6b1fbfc0c34f16842cdca22a1b3edef283b87567a53b9"
]
},
"32bit": {
"url": [
"https://www.python.org/ftp/python/3.12.0/python-3.12.0a1.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": [
"md5:e93c60f348c54a52251f9fd18f5295bd",
"c2611c8010979a47cdeea1af17d5061d8df40c5356fd8c2f3ba9492d516a99d1",
"d9309423b693ed63aea6b1fbfc0c34f16842cdca22a1b3edef283b87567a53b9"
]
}
},
"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 = (env 'PATHEXT' $true) -replace ';.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": {
"script": [
"if ($global) {",
" $pathext = (env 'PATHEXT' $true) -replace ';.PYW?', ''",
" env 'PATHEXT' $true \"$pathext\"",
"}"
]
},
"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.]+[ab]{1,2}[\\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"
]
]
}
}