mirror of
https://github.com/ScoopInstaller/Main.git
synced 2025-11-08 09:41:20 +00:00
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.
This commit is contained in:
parent
04c0ac9d8e
commit
7d2f3b76f8
@ -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>"
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user