From a736e7fafdb6a62d9698f45bbe9c120792ae9d27 Mon Sep 17 00:00:00 2001 From: Steph Enders Date: Wed, 28 Jun 2023 09:22:24 -0400 Subject: 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 --- .gitignore | 3 ++- make.sh | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-54-g00ecf