diff options
| author | Ross Burton <ross@burtonini.com> | 2022-01-14 13:53:52 +0000 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-01-18 08:59:58 -0800 |
| commit | 33ef3173d235c9dd521f9d52099dd409787a6305 (patch) | |
| tree | 30c6e933519d00ff2f533b348186d9f7f6ebeb06 /meta-python/recipes-devtools/python/python3-smbus_4.3.bb | |
| parent | 84769a963974cffc5d877e57a46a289a84bc293d (diff) | |
| download | meta-openembedded-33ef3173d235c9dd521f9d52099dd409787a6305.tar.gz | |
python3-smbus: use setuptools
Port the use of distutils to setuptools, as distutils is deprecated.
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-smbus_4.3.bb')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-smbus_4.3.bb | 8 |
1 files changed, 5 insertions, 3 deletions
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" | |||
| 2 | LICENSE = "GPLv2" | 2 | LICENSE = "GPLv2" |
| 3 | LIC_FILES_CHKSUM = "file://py-smbus/smbusmodule.c;beginline=1;endline=18;md5=46e424fb045901ab25e0f92c28c80055" | 3 | LIC_FILES_CHKSUM = "file://py-smbus/smbusmodule.c;beginline=1;endline=18;md5=46e424fb045901ab25e0f92c28c80055" |
| 4 | 4 | ||
| 5 | SRC_URI = "${KERNELORG_MIRROR}/software/utils/i2c-tools/i2c-tools-${PV}.tar.gz " | 5 | SRC_URI = "${KERNELORG_MIRROR}/software/utils/i2c-tools/i2c-tools-${PV}.tar.gz \ |
| 6 | file://0001-Use-setuptools-as-distutils-is-deprecated.patch \ | ||
| 7 | " | ||
| 6 | SRC_URI[sha256sum] = "eec464e42301d93586cbeca3845ed61bff40f560670e5b35baec57301d438148" | 8 | SRC_URI[sha256sum] = "eec464e42301d93586cbeca3845ed61bff40f560670e5b35baec57301d438148" |
| 7 | 9 | ||
| 8 | DEPENDS += "i2c-tools" | 10 | DEPENDS += "i2c-tools" |
| 9 | 11 | ||
| 10 | S = "${WORKDIR}/i2c-tools-${PV}" | 12 | S = "${WORKDIR}/i2c-tools-${PV}" |
| 11 | 13 | ||
| 12 | inherit distutils3 | 14 | inherit setuptools3 |
| 13 | 15 | ||
| 14 | DISTUTILS_SETUP_PATH = "${S}/py-smbus" | 16 | SETUPTOOLS_SETUP_PATH = "${S}/py-smbus" |
