mirror of
https://github.com/ScoopInstaller/Main.git
synced 2026-01-11 06:05:14 +00:00
46 lines
1.5 KiB
JSON
46 lines
1.5 KiB
JSON
{
|
|
"homepage": "http://www.python.org",
|
|
"license": "https://docs.python.org/3/license.html",
|
|
"version": "3.5.0",
|
|
"architecture": {
|
|
"64bit": {
|
|
"url": "https://www.python.org/ftp/python/3.5.0/python-3.5.0-amd64.exe",
|
|
"hash": "md5:facc4c9fb6f359b0ca45db0e11455421"
|
|
},
|
|
"32bit": {
|
|
"url": "https://www.python.org/ftp/python/3.5.0/python-3.5.0.exe",
|
|
"hash": "md5:1e87ad24225657a3de447171f0eda1df"
|
|
}
|
|
},
|
|
"bin": [
|
|
"python.exe",
|
|
"py.exe",
|
|
"pythonw.exe",
|
|
[ "python.exe", "python3" ]
|
|
],
|
|
"env_add_path": [ "scripts" ],
|
|
"post_install": "
|
|
python -m ensurepip; cp (gcm pip3).path \"$(split-path (gcm pip3).path)/pip.exe\"
|
|
|
|
$create_reg = {
|
|
param($path, $value)
|
|
|
|
$reg_base = \"Registry::HKEY_CURRENT_USER\\Software\"
|
|
|
|
new-item -path \"$reg_base\\$path\" -force | out-null
|
|
new-itemproperty -path \"$reg_base\\$path\" `
|
|
-name \"(Default)\" -value \"$value\" -force | out-null
|
|
}
|
|
|
|
$create_reg.Invoke(\"Classes\\Python.File\\shell\\open\\command\", `
|
|
\"`\"$dir\\py.exe`\" `\"%1`\" %*\")
|
|
$create_reg.Invoke(\"Classes\\.py\", \"Python.File\")
|
|
$create_reg.Invoke(\"Python\\PythonCore\\3.5\\InstallPath\", `
|
|
\"$dir\")
|
|
$create_reg.Invoke(\"Python\\PythonCore\\3.5\\PythonPath\", `
|
|
\"$dir;$dir\\Lib\\;$dir\\DLLs\\\")
|
|
",
|
|
"checkver": "<p>Latest: <a href=\".*\">Python ([0-9\\.]+)</a> - <a.*>.*</a></p>"
|
|
}
|
|
|