summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-01-28 16:10:35 -0800
committeryum <yum.food.vr@gmail.com>2023-01-28 16:10:35 -0800
commit182b66e35151d19752fdf0604fd298717d9d639e (patch)
treea931ca7b6e0c1c4392bdffe2bdd2ee02b94e773c
parent45301ff0c0d732c3bf93f0a324e821a5f67f468c (diff)
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.
-rw-r--r--GUI/package.ps18
1 files changed, 1 insertions, 7 deletions
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"