From 1f14d952649235e6b39b0216fb2bd41fc84e90dc Mon Sep 17 00:00:00 2001 From: Luke Sampson Date: Mon, 21 Sep 2015 09:17:55 +1000 Subject: [PATCH] python 3.5.0 (fix #504) --- python.json | 41 +++++++++++++++++------------------------ 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/python.json b/python.json index 4c843a0875..ec44adeb4e 100644 --- a/python.json +++ b/python.json @@ -4,42 +4,35 @@ "version": "3.5.0", "architecture": { "64bit": { - "url": "https://www.python.org/ftp/python/3.5.0/python-3.5.0-amd64.exe", + "url": "https://www.python.org/ftp/python/3.5.0/python-3.5.0-amd64.exe#/py350.exe", "hash": "md5:facc4c9fb6f359b0ca45db0e11455421" }, "32bit": { - "url": "https://www.python.org/ftp/python/3.5.0/python-3.5.0.exe", + "url": "https://www.python.org/ftp/python/3.5.0/python-3.5.0.exe#/py350.exe", "hash": "md5:1e87ad24225657a3de447171f0eda1df" } }, + "pre_install": "copy-item $dir\\py350.exe $dir\\uninstall.exe", + "installer": { + "args": [ + "/quiet", + "InstallAllUsers=0", + "TargetDir=$dir", + "AssociateFiles=0", + "Shortcuts=0", + "InstallLauncherAllUsers=0" + ] + }, + "uninstaller": { + "file": "uninstall.exe", + "args": [ "/uninstall", "/quiet", "InstallAllUsers=0"] + }, "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": "

Latest: Python ([0-9\\.]+) - .*

" }