mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-13 22:05:27 +01:00
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>
This commit is contained in:
parent
84769a9639
commit
33ef3173d2
|
|
@ -0,0 +1,25 @@
|
|||
Upstream-Status: Submitted [https://lore.kernel.org/linux-i2c/20220114134910.3994688-1-ross.burton@arm.com/T/#u]
|
||||
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
||||
|
||||
From fa522a9a390b1857a58ec1f55da1465c542fd106 Mon Sep 17 00:00:00 2001
|
||||
From: Ross Burton <ross.burton@arm.com>
|
||||
Date: Fri, 14 Jan 2022 13:38:34 +0000
|
||||
Subject: [PATCH] Use setuptools as distutils is 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,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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user