From 14f0ff5bcdb6dcbe13fe6ddba53425c286510326 Mon Sep 17 00:00:00 2001 From: Vladisvell <73733747+Vladisvell@users.noreply.github.com> Date: Fri, 17 Nov 2023 16:57:26 +0500 Subject: [PATCH] bugfix: Fixed 3.11.6 Python errors with installing dependencies (#3884) --- tools/bootstrap/python311._pth | 5 +++++ tools/bootstrap/python_.ps1 | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 tools/bootstrap/python311._pth diff --git a/tools/bootstrap/python311._pth b/tools/bootstrap/python311._pth new file mode 100644 index 00000000000..abba38c9271 --- /dev/null +++ b/tools/bootstrap/python311._pth @@ -0,0 +1,5 @@ +python311.zip +. +..\..\.. + +import site diff --git a/tools/bootstrap/python_.ps1 b/tools/bootstrap/python_.ps1 index 505fb92194d..47d1d4b46de 100644 --- a/tools/bootstrap/python_.ps1 +++ b/tools/bootstrap/python_.ps1 @@ -50,7 +50,7 @@ if (!(Test-Path $PythonExe -PathType Leaf)) { [System.IO.Compression.ZipFile]::ExtractToDirectory($Archive, $PythonDir) # Copy a ._pth file without "import site" commented, so pip will work - Copy-Item "$Bootstrap/python37._pth" $PythonDir ` + Copy-Item "$Bootstrap/python311._pth" $PythonDir ` -ErrorAction Stop Remove-Item $Archive