linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] py-smbus/setup.py: use setuptools instead of distutils
@ 2022-01-14 13:49 Ross Burton
  2022-01-18 12:23 ` Jean Delvare
  0 siblings, 1 reply; 4+ messages in thread
From: Ross Burton @ 2022-01-14 13:49 UTC (permalink / raw)
  To: linux-i2c; +Cc: jdelvare

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>
---
 py-smbus/setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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",
-- 
2.25.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-19 11:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-14 13:49 [PATCH] py-smbus/setup.py: use setuptools instead of distutils Ross Burton
2022-01-18 12:23 ` Jean Delvare
2022-01-18 16:50   ` Ross Burton
2022-01-19 11:09     ` Jean Delvare

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).