1From cf3541b8a7ed50782edd05836020d31230fb86c6 Mon Sep 17 00:00:00 2001 2From: Ross Burton <ross.burton@arm.com> 3Date: Wed, 19 Jan 2022 12:08:53 +0100 4Subject: py-smbus: Use setuptools instead of distutils 5 6As per [1], distutils is deprecated in Python 3.10 and will be removed 7entirely in Python 3.12. 8 9As setuptools is essentially an enhanced version of distutils, it's 10trivial to port to that. 11 12[1] https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated 13 14Signed-off-by: Ross Burton <ross.burton@arm.com> 15Signed-off-by: Jean Delvare <jdelvare@suse.de> 16 17Upstream: https://git.kernel.org/pub/scm/utils/i2c-tools/i2c-tools.git/commit/?id=cf3541b8a7ed50782edd05836020d31230fb86c6 18 19Signed-off-by: Bernd Kuhls <bernd@kuhls.net> 20--- 21 py-smbus/setup.py | 2 +- 22 1 file changed, 1 insertion(+), 1 deletion(-) 23 24diff --git a/py-smbus/setup.py b/py-smbus/setup.py 25index 28a4500..26db33a 100644 26--- a/py-smbus/setup.py 27+++ b/py-smbus/setup.py 28@@ -1,6 +1,6 @@ 29 #!/usr/bin/env python 30 31-from distutils.core import setup, Extension 32+from setuptools import setup, Extension 33 34 setup( name="smbus", 35 version="1.1", 36-- 37cgit 38 39