summaryrefslogtreecommitdiffstats
path: root/GUI/package.ps1
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-03-28 17:47:29 -0700
committeryum <yum.food.vr@gmail.com>2023-03-28 17:47:29 -0700
commitf5c1611f9cdf027f75c81576d17dfee8671d65ca (patch)
treea4e5e5b74033068f0fa2de0bde6046b1dae2c437 /GUI/package.ps1
parentf01b9e4641c4551a3ccf5af4036f0d95cc312f33 (diff)
package.ps1 always regenerates Python/v0.10.1
Intended to avoid accidentally releasing dirty environments.
Diffstat (limited to 'GUI/package.ps1')
-rw-r--r--GUI/package.ps115
1 files changed, 9 insertions, 6 deletions
diff --git a/GUI/package.ps1 b/GUI/package.ps1
index 7e0eace..1b7fa6d 100644
--- a/GUI/package.ps1
+++ b/GUI/package.ps1
@@ -16,6 +16,7 @@ if (Test-Path $install_dir) {
$py_dir = "Python"
+rm -Recurse $py_dir
if (-Not (Test-Path $py_dir)) {
echo "Fetching python"
@@ -32,12 +33,6 @@ if (-Not (Test-Path $py_dir)) {
echo "../Scripts" >> Python/python310._pth
echo "import site" >> Python/python310._pth
-
- ./Python/python.exe Python/get-pip.py
-
- echo "Installing future"
- echo "Assuming host has python 3.10.9 installed" # TODO test for this
- python -m pip install future==0.18.2 --target Python/Lib/site-packages
}
$pip_path = "$py_dir/get-pip.py"
@@ -55,6 +50,14 @@ if (-Not (Test-Path $pip_path)) {
mv $PIP_FILE $pip_path
}
+if ($true) {
+ ./Python/python.exe Python/get-pip.py
+
+ echo "Installing future"
+ echo "Assuming host has python 3.10.9 installed" # TODO test for this
+ python -m pip install future==0.18.2 --target Python/Lib/site-packages
+}
+
$git_dir = "PortableGit"
if (-Not (Test-Path $git_dir)) {