install python

This commit is contained in:
Jesse Bannon 2023-02-22 22:58:12 -08:00
parent ee1fe1418d
commit 86979d44c9

View file

@ -67,12 +67,20 @@ jobs:
- name: Install Python - name: Install Python
run: | run: |
cat /etc/os-release cat /etc/os-release
dnf update dnf update -y
- name: Install and Package dnf install -y epel-release
dnf install -y gcc openssl-devel bzip2-devel libffi-devel zlib-devel wget make
wget https://www.python.org/ftp/python/3.10.10/Python-3.10.10.tar.xz
tar -xf Python-3.10.10.tar.xz
cd Python-3.10.10 && ./configure --enable-optimizations
make -j 2
nproc
make altinstall
python3.10 --version
- name: Build Package
run: | run: |
python --version python3.10 -m pip install --upgrade pip
python3 --version python3.10 -m install -e .[build]
pip install -e .[build]
# Build executable # Build executable
pyinstaller ytdl-sub.spec pyinstaller ytdl-sub.spec
mkdir -p /opt/builds mkdir -p /opt/builds