Skip to content

Commit f383caf

Browse files
committed
Switch from distutils to setuptools
distutils was depricated in Python3.12 trying to build kernelstub on 22.04 (jammy) results in the folowing error: ``` DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives ```
1 parent de5b292 commit f383caf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

debian/control

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Source: kernelstub
22
Maintainer: Ian Santopietro <[email protected]>
33
Section: python
44
Priority: optional
5-
Build-Depends: python3-all, pyflakes3, debhelper (>= 7.4.3), dh-python
5+
Build-Depends: python3-all, pyflakes3, debhelper (>= 7.4.3), dh-python, python3-setuptools
66
Standards-Version: 3.9.1
77

88
Package: kernelstub

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
"""
2020

2121

22-
from distutils.core import setup
23-
from distutils.cmd import Command
22+
from setuptools import setup
23+
from setuptools import Command
2424
import os, subprocess, sys
2525

2626
TREE = os.path.dirname(os.path.abspath(__file__))

0 commit comments

Comments
 (0)