ScoopInstaller_Main/python27.json
chidea 7d2f3b76f8 Let PyWin32 extension installer find this python
OK, this is more than two lines, but by almost the same, it's fixing the same issue with it.
2015-06-17 03:03:31 +09:00

41 lines
1.1 KiB
JSON

{
"homepage": "http://www.python.org",
"license": "http://docs.python.org/2/license.html",
"version": "2.7.10",
"architecture": {
"64bit": {
"url": "https://www.python.org/ftp/python/2.7.10/python-2.7.10.amd64.msi",
"hash": "md5:35f5c301beab341f6f6c9785939882ee"
},
"32bit": {
"url": "https://www.python.org/ftp/python/2.7.10/python-2.7.10.msi",
"hash": "md5:4ba2c79b103f6003bc4611c837a08208"
}
},
"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>"
}