From 182b66e35151d19752fdf0604fd298717d9d639e Mon Sep 17 00:00:00 2001 From: yum Date: Sat, 28 Jan 2023 16:10:35 -0800 Subject: Delete python310._pth I was using this file to constrain the set of paths that Python can see, but since `future` doesn't have a wheel, it will fail to install on a fresh system. If you set pip's --cache-dir to some new directory, you'll see it fail to install. The _pth doesn't really seem to matter, since without it, packages are still installed under the virtual environment. --- GUI/package.ps1 | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'GUI') diff --git a/GUI/package.ps1 b/GUI/package.ps1 index 93bd01c..96e641e 100644 --- a/GUI/package.ps1 +++ b/GUI/package.ps1 @@ -20,13 +20,7 @@ if (-Not (Test-Path $py_dir)) { mkdir Python Expand-Archive $PYTHON_FILE -DestinationPath Python - # Required for pip to work with embedded python - echo "import site" | Out-File -FilePath Python/python310._pth -Encoding "utf8" -Append - # Required for TaSTT python script imports to work - echo "../Scripts" | Out-File -FilePath Python/python310._pth -Encoding "utf8" -Append - # Required for pip-installed dependency imports to work - echo "Lib" | Out-File -FilePath Python/python310._pth -Encoding "utf8" -Append - echo "Lib/site-packages" | Out-File -FilePath Python/python310._pth -Encoding "utf8" -Append + rm Python/python310._pth } $pip_path = "$py_dir/get-pip.py" -- cgit v1.2.3