Browse Source

pkg/debian: Fix setup for Python 3.11

Maximilian Luz 2 years ago
parent
commit
27edbf4bb8
1 changed files with 10 additions and 2 deletions
  1. 10 2
      .github/workflows/debian.yml

+ 10 - 2
.github/workflows/debian.yml

@@ -29,17 +29,25 @@ jobs:
         ln -snf /usr/share/zoneinfo/$TZ /etc/localtime
         ln -snf /usr/share/zoneinfo/$TZ /etc/localtime
         echo $TZ > /etc/timezone
         echo $TZ > /etc/timezone
         apt-get -y update
         apt-get -y update
+        apt-get -y upgrade
         apt-get -y install build-essential fakeroot rsync git wget software-properties-common \
         apt-get -y install build-essential fakeroot rsync git wget software-properties-common \
             zstd lz4 sbsigntool debhelper dpkg-dev dpkg-sig
             zstd lz4 sbsigntool debhelper dpkg-dev dpkg-sig
         apt-get -y build-dep linux
         apt-get -y build-dep linux
 
 
+    - name: Install Python 3.11
+      run: |
         # install python 3.11, required for configuring the kernel via Ubuntu's annotation format
         # install python 3.11, required for configuring the kernel via Ubuntu's annotation format
         add-apt-repository -y ppa:deadsnakes
         add-apt-repository -y ppa:deadsnakes
+
         apt-get -y update
         apt-get -y update
+        apt-get -y upgrade
+
         apt-get -y install python3.11
         apt-get -y install python3.11
-        ln -s /usr/bin/python3.11 /usr/bin/python
 
 
-        apt-get -y upgrade
+        rm -f /usr/bin/python
+        rm -f /usr/bin/python3
+        ln -s /usr/bin/python3.11 /usr/bin/python
+        ln -s /usr/bin/python3.11 /usr/bin/python3
 
 
     - name: Prepare kernel source
     - name: Prepare kernel source
       run: |
       run: |