python3-rtimu: Port to using setuptools and fix build with wheel

Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Khem Raj 2022-02-28 21:43:49 -08:00 committed by Andrei Gherzan
parent 18345cfb4a
commit df8670fb5a
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,29 @@
From f5ab30abd37ee884fb3ccaad0a8d21108ca2c812 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 28 Feb 2022 21:37:19 -0800
Subject: [PATCH] setup.py: Port to use setuptools
Needed to get it going with wheel, distutils is deprecated for long
Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Linux/python/setup.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Linux/python/setup.py b/Linux/python/setup.py
index e429e6f..da96843 100644
--- a/Linux/python/setup.py
+++ b/Linux/python/setup.py
@@ -22,7 +22,7 @@
#// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 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
import os.path
RTIMU_sources = [
--
2.35.1

View File

@ -7,9 +7,10 @@ LIC_FILES_CHKSUM = "file://../../LICENSE;md5=96cdecb41125f498958e09b72faf318e"
SRC_URI = "git://github.com/RPi-Distro/RTIMULib.git;protocol=http;branch=master;protocol=https \ SRC_URI = "git://github.com/RPi-Distro/RTIMULib.git;protocol=http;branch=master;protocol=https \
file://0001-include-asm-ioctl.h-for-ioctl-define.patch;patchdir=../.. \ file://0001-include-asm-ioctl.h-for-ioctl-define.patch;patchdir=../.. \
file://0001-setup.py-Port-to-use-setuptools.patch;patchdir=../.. \
" "
SRCREV = "b949681af69b45f0f7f4bb53b6770037b5b02178" SRCREV = "b949681af69b45f0f7f4bb53b6770037b5b02178"
S = "${WORKDIR}/git/Linux/python" S = "${WORKDIR}/git/Linux/python"
PYPA_WHEEL = "${B}/dist/RTIMULib-7.2.1-*.whl"
inherit setuptools3 inherit setuptools3