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"

This commit is contained in:
otavepto 2024-06-16 17:02:45 +03:00
parent b1217657db
commit f7e4394f34
2 changed files with 5 additions and 3 deletions

View File

@ -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

View File

@ -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