From f7e4394f34cb3904c58549d3a7710ea6d28732df Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Sun, 16 Jun 2024 17:02:45 +0300 Subject: [PATCH] this warning might be the reason SSL certificate is failing on Arch (when adding deadsnake PPA): "Note: for jammy and noble, older python versions requre libssl<3 so they are not currently built" --- .github/workflows/gen_emu_config-build-win.yml | 4 ++-- tools/generate_emu_config/recreate_venv_linux.sh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/gen_emu_config-build-win.yml b/.github/workflows/gen_emu_config-build-win.yml index 2d016ac9..d3e563a7 100644 --- a/.github/workflows/gen_emu_config-build-win.yml +++ b/.github/workflows/gen_emu_config-build-win.yml @@ -21,10 +21,10 @@ jobs: runs-on: windows-2022 steps: - - name: Set up Python 3.10 + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" ### on Windows Git will auto change line ending to CRLF, not preferable - name: Ensure LF line ending diff --git a/tools/generate_emu_config/recreate_venv_linux.sh b/tools/generate_emu_config/recreate_venv_linux.sh index 71ebde2c..9f51c8ed 100644 --- a/tools/generate_emu_config/recreate_venv_linux.sh +++ b/tools/generate_emu_config/recreate_venv_linux.sh @@ -6,11 +6,13 @@ if [ "$(id -u)" -ne 0 ]; then exit 1 fi -python_package="python3.10" +python_package="python3.12" venv=".env-linux" reqs_file="requirements.txt" script_dir=$( cd -- "$( dirname -- "${0}" )" &> /dev/null && pwd ) +apt update -y || exit 1 +apt install software-properties-common -y add-apt-repository ppa:deadsnakes/ppa -y apt update -y || exit 1 apt install "$python_package" -y || exit 1