summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteph Enders <steph@senders.io>2023-06-28 09:22:24 -0400
committerSteph Enders <steph@senders.io>2023-06-28 09:22:24 -0400
commita736e7fafdb6a62d9698f45bbe9c120792ae9d27 (patch)
tree7e072db75365b2abdc9436b2b58a507a28d29502
parentd9070d655bf2ecdf6c68ea7e24fd669229b01193 (diff)
Setup auto venv in make script
Because we require python in the make script its easier to venv ourselves than require it be setup in the build environment
-rw-r--r--.gitignore3
-rwxr-xr-xmake.sh5
2 files changed, 7 insertions, 1 deletions
diff --git a/.gitignore b/.gitignore
index 3ea701a..a34ea41 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
www/
gemini/
-drafts/ \ No newline at end of file
+drafts/
+.venv \ No newline at end of file
diff --git a/make.sh b/make.sh
index fd436a4..aa25d95 100755
--- a/make.sh
+++ b/make.sh
@@ -1,3 +1,4 @@
+set -x
# Render pages
./render.sh pages/index.html www/index.html
./render.sh pages/error.html www/error.html
@@ -23,6 +24,10 @@ mkdir -p gemini/log
cp -r capsule/* gemini
# generate gemlog
+python3 -m venv .venv
+source .venv/bin/activate
+python3 -m pip install -I --disable-pip-version-check -r requirements.txt
+
touch gemini/log/index.gmi
echo -e "# The Woman In My Eye\n" > gemini/log/index.gmi