From 656d7c2092545b18d981acfac000c73fb2128e4a Mon Sep 17 00:00:00 2001 From: yum Date: Tue, 21 Mar 2023 14:28:46 -0700 Subject: Fix _socket module not found issue Need python310._pth, specifically 'import site' line, for embedded python + pip to get along. --- GUI/package.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'GUI/package.ps1') diff --git a/GUI/package.ps1 b/GUI/package.ps1 index fa5e162..5f15259 100644 --- a/GUI/package.ps1 +++ b/GUI/package.ps1 @@ -6,6 +6,8 @@ param( echo "Skip zip: $skip_zip" echo "Release: $release" +$PSDefaultParameterValues['Out-File:Encoding'] = 'utf8' + $install_dir = "TaSTT" if (Test-Path $install_dir) { @@ -28,7 +30,8 @@ if (-Not (Test-Path $py_dir)) { mkdir Python Expand-Archive $PYTHON_FILE -DestinationPath Python - rm Python/python310._pth + echo "../Scripts" >> Python/python310._pth + echo "import site" >> Python/python310._pth } $pip_path = "$py_dir/get-pip.py" -- cgit v1.2.3