From 45518990974e241e536e498fdbd3d7a1360956bf Mon Sep 17 00:00:00 2001 From: Andrei Jiroh Halili Date: Sat, 7 Oct 2023 00:58:45 +0800 Subject: [PATCH] ci(builds.sr.ht): do some additional fixes on both config and build script Signed-off-by: Andrei Jiroh Halili --- .build.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.build.yml b/.build.yml index 48032d6..365bceb 100644 --- a/.build.yml +++ b/.build.yml @@ -2,8 +2,10 @@ image: alpine/edge environment: FF_ENABLE_COMMIT_DATA: "true" FF_GENERATE_SOCIAL_CARDS: "true" + SKIP_VENV_SETUP: "true" packages: - openssh-client + - rsync - python3 - py3-pip - py3-wheel @@ -28,8 +30,12 @@ tasks: - repo-sync: | cd web - build: | - sudo rm /usr/lib/python3*/EXTERNALLY_MANAGED -rfv || true - cd tildeweb && pip3 install -r requirements.txt --user + # https://www.jeffgeerling.com/blog/2023/how-solve-error-externally-managed-environment-when-installing-pip3 + sudo rm /usr/lib/python3*/EXTERNALLY-MANAGED -rfv + + cd web + + # our build script handles both the install and build stuff itself export PATH="$PATH:$HOME/.local/bin" bash ./build.sh - generate-archive: |