Skip to content

Commit

Permalink
use previous py3.8 shared object for py3.10 + simplify workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pranabdas committed Nov 2, 2024
1 parent 5296894 commit c1c756e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/python-package-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,13 @@ jobs:
with:
fetch-depth: 0

- name: Install dependencies for Python build
run: |
dnf install -y dnf-plugins-core
dnf install -y gcc openssl openssl-devel bzip2-devel libffi-devel zlib-devel make wget curl-minimal
dnf install -y git
- name: Setup Python 3
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Download and Install Python 3.10 from Source
run: |
PYTHON_VERSION=3.10.12
wget https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tgz
tar -xzf Python-$PYTHON_VERSION.tgz
cd Python-$PYTHON_VERSION
./configure --enable-optimizations
make -j $(nproc)
make altinstall # This installs it as `python3.10` without overwriting the default `python3`
ln -s /usr/local/bin/python3.10 /usr/local/bin/python # Link it as `python`
- name: Verify Python and SSL module
run: |
python --version
python -c "import ssl; print('SSL support is available:', ssl.OPENSSL_VERSION)"
- name: Install prerequisites
run: dnf install -y git

- name: Install Torque
run: |
Expand Down
Binary file removed pbs/_pbs.cpython-310-x86_64-linux-gnu.so
Binary file not shown.
Binary file removed pbs/_pbs.cpython-38-x86_64-linux-gnu.so
Binary file not shown.

0 comments on commit c1c756e

Please sign in to comment.