From 635c25fc4983e4d295dd26d6770725ec8575920b Mon Sep 17 00:00:00 2001 From: chidea Date: Wed, 17 Jun 2015 02:40:10 +0900 Subject: [PATCH 1/2] Let PyWin32 extension installer find this python Not sure the correctness of it but this two lines will fix the issue that pywin32 extension installer being unable to find python installed with scoop. pywin32 installer : http://sourceforge.net/projects/pywin32/files/pywin32/Build%20219/ Reference : http://tech.valgog.com/2010/01/after-installing-64-bit-windows-7-at.html --- bucket/python.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bucket/python.json b/bucket/python.json index cf7edf4e2..cc031ba03 100644 --- a/bucket/python.json +++ b/bucket/python.json @@ -37,6 +37,8 @@ $create_reg.Invoke(\"Classes\\.py\", \"Python.File\") $create_reg.Invoke(\"Python\\PythonCore\\3.4\\InstallPath\", ` \"$dir\") + $create_reg.Invoke(\"Python\\PythonCore\\3.4\\PythonPath\", ` + \"$dir;$dir\\Lib\\;$dir\\DLLs\\\") ", "checkver": "

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

" } From 657443770ed8659273c3440258562644f29a68e0 Mon Sep 17 00:00:00 2001 From: chidea Date: Wed, 17 Jun 2015 03:03:31 +0900 Subject: [PATCH 2/2] 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. --- bucket/python27.json | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/bucket/python27.json b/bucket/python27.json index 396966657..f18ccde36 100644 --- a/bucket/python27.json +++ b/bucket/python27.json @@ -20,11 +20,21 @@ "env_add_path": [ "scripts" ], "post_install": " python2 -m ensurepip - - $reg_path = \"Registry::HKEY_CURRENT_USER\\Software\\Python\\PythonCore\\2.7\\InstallPath\" - new-item -path $reg_path -force | out-null - new-itemproperty -path $reg_path ` - -name \"(Default)\" -value \"$dir\" -force | out-null + + $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": "

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

" }