0001-py-smbus-Use-setuptools-instead-of-distutils.patch 1.1 KB

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