From 33ef3173d235c9dd521f9d52099dd409787a6305 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Fri, 14 Jan 2022 13:53:52 +0000 Subject: python3-smbus: use setuptools Port the use of distutils to setuptools, as distutils is deprecated. Signed-off-by: Ross Burton Signed-off-by: Khem Raj Signed-off-by: Trevor Gamblin --- meta-python/recipes-devtools/python/python3-smbus_4.3.bb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'meta-python/recipes-devtools/python/python3-smbus_4.3.bb') diff --git a/meta-python/recipes-devtools/python/python3-smbus_4.3.bb b/meta-python/recipes-devtools/python/python3-smbus_4.3.bb index a09a108b36..ecdff3adad 100644 --- a/meta-python/recipes-devtools/python/python3-smbus_4.3.bb +++ b/meta-python/recipes-devtools/python/python3-smbus_4.3.bb @@ -2,13 +2,15 @@ SUMMARY = "Set of i2c tools for linux - Python module" LICENSE = "GPLv2" LIC_FILES_CHKSUM = "file://py-smbus/smbusmodule.c;beginline=1;endline=18;md5=46e424fb045901ab25e0f92c28c80055" -SRC_URI = "${KERNELORG_MIRROR}/software/utils/i2c-tools/i2c-tools-${PV}.tar.gz " +SRC_URI = "${KERNELORG_MIRROR}/software/utils/i2c-tools/i2c-tools-${PV}.tar.gz \ + file://0001-Use-setuptools-as-distutils-is-deprecated.patch \ + " SRC_URI[sha256sum] = "eec464e42301d93586cbeca3845ed61bff40f560670e5b35baec57301d438148" DEPENDS += "i2c-tools" S = "${WORKDIR}/i2c-tools-${PV}" -inherit distutils3 +inherit setuptools3 -DISTUTILS_SETUP_PATH = "${S}/py-smbus" +SETUPTOOLS_SETUP_PATH = "${S}/py-smbus" -- cgit v1.2.3-54-g00ecf