From 61ccd25ab55b5a19cad5753fff9b29eddd62b7a2 Mon Sep 17 00:00:00 2001 From: Kumi Date: Mon, 1 Jul 2024 10:04:05 +0200 Subject: [PATCH] fix(build): correct Python command invocations for build Updated the build script to use `python3` and `pip3` commands, ensuring compatibility with environments where Python 2 might be the default. Also added `--break-system-packages` flag to `pip3` install to handle specific package installations without breaking the environment. --- .forgejo/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index ec34db4..ee2e744 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -17,11 +17,11 @@ jobs: run: | apt update apt install -y python3 python3-pip - python -m pip install --upgrade pip - pip install -r requirements.txt + python3 -m pip install --upgrade pip + pip3 install -r requirements.txt --break-system-packages - name: Generate static site - run: python main.py + run: python3 main.py - name: Deploy to pages branch run: |