We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9904e7 commit 1ece496Copy full SHA for 1ece496
tools/metacall-environment.ps1
@@ -78,9 +78,11 @@ function sub-python {
78
# Install Python
79
./python_installer.exe /quiet "TargetDir=$RuntimeDir" `
80
Include_debug=1 Include_symbols=1 PrependPath=1 CompileAll=1
81
- md -Force "$RuntimeDir\Pip"
82
+ # Set environment variables
83
Add-to-Path $RuntimeDir
84
+ [Environment]::SetEnvironmentVariable("PYTHONHOME", $RuntimeDir)
85
+ [Environment]::SetEnvironmentVariable("PIP_TARGET", "$RuntimeDir\Lib")
86
87
# Patch for FindPython.cmake
88
$FindPython = "$ROOT_DIR\cmake\FindPython.cmake"
0 commit comments