mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2026-08-26 22:28:03 +01:00
forces a python update
hooks didn't work
This commit is contained in:
@@ -49,8 +49,13 @@ if (!(Test-Path $PythonExe -PathType Leaf)) {
|
||||
|
||||
[System.IO.Compression.ZipFile]::ExtractToDirectory($Archive, $PythonDir)
|
||||
|
||||
$PythonVersionArray = $PythonVersion.Split(".")
|
||||
$PythonVersionString = "python$($PythonVersionArray[0])$($PythonVersionArray[1])"
|
||||
Write-Output "Generating PATH descriptor."
|
||||
New-Item "$Cache/$PythonVersionString._pth" | Out-Null
|
||||
Set-Content "$Cache/$PythonVersionString._pth" "$PythonVersionString.zip`n.`n..\..\..`nimport site`n"
|
||||
# Copy a ._pth file without "import site" commented, so pip will work
|
||||
Copy-Item "$Bootstrap/python37._pth" $PythonDir `
|
||||
Copy-Item "$Cache/$PythonVersionString._pth" $PythonDir `
|
||||
-ErrorAction Stop
|
||||
|
||||
Remove-Item $Archive
|
||||
|
||||
Reference in New Issue
Block a user