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
run: |
cat /etc/os-release
dnf update
- name: Install and Package
dnf update -y
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: |
python --version
python3 --version
pip install -e .[build]
python3.10 -m pip install --upgrade pip
python3.10 -m install -e .[build]
# Build executable
pyinstaller ytdl-sub.spec
mkdir -p /opt/builds