diff --git a/recipes-devtools/python/rpi-gpio/0001-setup.py-Use-setuptools-instead-of-distutils.patch b/recipes-devtools/python/rpi-gpio/0001-setup.py-Use-setuptools-instead-of-distutils.patch new file mode 100644 index 0000000..33480b1 --- /dev/null +++ b/recipes-devtools/python/rpi-gpio/0001-setup.py-Use-setuptools-instead-of-distutils.patch @@ -0,0 +1,28 @@ +From df5657d772accb275a12c1b1690befa8d87305c8 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 5 Mar 2022 09:53:41 -0800 +Subject: [PATCH] setup.py: Use setuptools instead of distutils + +Upstream-Status: Pending + +Signed-off-by: Khem Raj +--- + setup.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index 2b600ca..0fa0807 100644 +--- a/setup.py ++++ b/setup.py +@@ -20,7 +20,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + """ + +-from distutils.core import setup, Extension ++from setuptools import setup, Extension + + classifiers = ['Development Status :: 5 - Production/Stable', + 'Operating System :: POSIX :: Linux', +-- +2.35.1 + diff --git a/recipes-devtools/python/rpi-gpio_0.7.0.bb b/recipes-devtools/python/rpi-gpio_0.7.0.bb index 574021e..a92d2f5 100644 --- a/recipes-devtools/python/rpi-gpio_0.7.0.bb +++ b/recipes-devtools/python/rpi-gpio_0.7.0.bb @@ -7,8 +7,11 @@ LIC_FILES_CHKSUM = "file://LICENCE.txt;md5=9b95630a648966b142f1a0dcea001cb7" PYPI_PACKAGE = "RPi.GPIO" inherit pypi setuptools3 -SRC_URI += "file://0001-Remove-nested-functions.patch" -SRC_URI[md5sum] = "777617f9dea9a1680f9af43db0cf150e" +PIP_INSTALL_PACKAGE = "RPi.GPIO" + +SRC_URI += "file://0001-Remove-nested-functions.patch \ + file://0001-setup.py-Use-setuptools-instead-of-distutils.patch \ + " SRC_URI[sha256sum] = "7424bc6c205466764f30f666c18187a0824077daf20b295c42f08aea2cb87d3f" COMPATIBLE_MACHINE = "^rpi$"