summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2022-01-19 12:08:53 +0100
committerJean Delvare <jdelvare@suse.de>2022-01-19 12:08:53 +0100
commitcf3541b8a7ed50782edd05836020d31230fb86c6 (patch)
treed8ac6b25339b8ab95fc9dd9016f80b424acd7b63
parentc94a3a21bc569f7021685bc8c4a21c0b01334ec2 (diff)
downloadi2c-tools-git-cf3541b8a7ed50782edd05836020d31230fb86c6.tar.gz
py-smbus: Use setuptools instead of distutils
As per [1], distutils is deprecated in Python 3.10 and will be removed entirely in Python 3.12. As setuptools is essentially an enhanced version of distutils, it's trivial to port to that. [1] https://docs.python.org/3/whatsnew/3.10.html#distutils-deprecated Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
-rw-r--r--py-smbus/setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/py-smbus/setup.py b/py-smbus/setup.py
index 28a4500..26db33a 100644
--- a/py-smbus/setup.py
+++ b/py-smbus/setup.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python
-from distutils.core import setup, Extension
+from setuptools import setup, Extension
setup( name="smbus",
version="1.1",