Merge pull request #396 from chidea/patch-1

Let PyWin32 extension installer find this python
This commit is contained in:
Luke Sampson
2015-06-17 08:23:42 +10:00
2 changed files with 17 additions and 5 deletions
+2
View File
@@ -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": "<p>Latest: <a href=\".*\">Python ([0-9\\.]+)</a> - <a.*>.*</a></p>"
}
+15 -5
View File
@@ -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": "<p>Latest: <a.*>.*</a> - <a href=\".*\">Python ([0-9\\.]+)</a></p>"
}