rpi-gpio: Port to PEP-517 packaging

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2022-03-05 09:58:38 -08:00 committed by Andrei Gherzan
parent 0637a85edd
commit c25f42074a
2 changed files with 33 additions and 2 deletions

View File

@ -0,0 +1,28 @@
From df5657d772accb275a12c1b1690befa8d87305c8 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
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 <raj.khem@gmail.com>
---
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

View File

@ -7,8 +7,11 @@ LIC_FILES_CHKSUM = "file://LICENCE.txt;md5=9b95630a648966b142f1a0dcea001cb7"
PYPI_PACKAGE = "RPi.GPIO" PYPI_PACKAGE = "RPi.GPIO"
inherit pypi setuptools3 inherit pypi setuptools3
SRC_URI += "file://0001-Remove-nested-functions.patch" PIP_INSTALL_PACKAGE = "RPi.GPIO"
SRC_URI[md5sum] = "777617f9dea9a1680f9af43db0cf150e"
SRC_URI += "file://0001-Remove-nested-functions.patch \
file://0001-setup.py-Use-setuptools-instead-of-distutils.patch \
"
SRC_URI[sha256sum] = "7424bc6c205466764f30f666c18187a0824077daf20b295c42f08aea2cb87d3f" SRC_URI[sha256sum] = "7424bc6c205466764f30f666c18187a0824077daf20b295c42f08aea2cb87d3f"
COMPATIBLE_MACHINE = "^rpi$" COMPATIBLE_MACHINE = "^rpi$"