ScoopInstaller_Main/python27.json
2016-01-21 22:47:22 +01:00

41 lines
1.3 KiB
JSON

{
"homepage": "http://www.python.org",
"license": "http://docs.python.org/2/license.html",
"version": "2.7.11",
"architecture": {
"64bit": {
"url": "https://www.python.org/ftp/python/2.7.11/python-2.7.11.amd64.msi",
"hash": "296886c1fb5dcf2923edefef843801d90112b6e18f840e9fab42abd1cc2ddc1c"
},
"32bit": {
"url": "https://www.python.org/ftp/python/2.7.11/python-2.7.11.msi",
"hash": "9debc6445b81ad735b5e5767d5609ed56167cbcc52c62a55b66629fcbe23a188"
}
},
"bin": [
"python.exe",
"pythonw.exe",
[ "python.exe", "python2" ]
],
"env_add_path": [ "scripts" ],
"post_install": "
python2 -m ensurepip
$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(\"Python\\PythonCore\\2.7\\InstallPath\", `
\"$dir\")
$create_reg.Invoke(\"Python\\PythonCore\\2.7\\PythonPath\", `
\"$dir;$dir\\Lib\\;$dir\\DLLs\\\")
",
"checkver": "<p>Latest: <a.*>.*</a> - <a href=\".*\">Python ([0-9\\.]+)</a></p>"
}