azote: dont use distutils

This commit is contained in:
Markus Volk 2022-01-18 09:55:10 +01:00
parent 6e04e57fc9
commit 3a7e0a365a
2 changed files with 29 additions and 0 deletions

View File

@ -0,0 +1,27 @@
From 9522acf9af582148ab85062f3647965ee5caa778 Mon Sep 17 00:00:00 2001
From: Markus Volk <f_l_k@t-online.de>
Date: Sat, 15 Jan 2022 18:05:08 +0100
Subject: [PATCH] dist/azote: avoid usage of deprecated distutils module
The distutils module has been depecated in python 3.10.
Make use of sysconfig instead
Signed-off-by: Markus Volk <f_l_k@t-online.de>
---
dist/azote | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dist/azote b/dist/azote
index b0bf0f0..6674ec9 100755
--- a/dist/azote
+++ b/dist/azote
@@ -1,5 +1,5 @@
#!/bin/sh
-LIB=$( python3 -Ic "from distutils.sysconfig import get_python_lib; print(get_python_lib())" )
+LIB=$(python3 -Ic "from sysconfig import get_path; print(get_path('platlib'))")
cd $LIB/azote
exec /usr/bin/python3 main.py "$@"
--
2.25.1

View File

@ -1,9 +1,11 @@
SUMMARY = "Azote is a GTK+3 based frontend for swaybg."
LICENSE = "GPL-3.0-only"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1ebbd3e34237af26da5dc08a4e440464"
SRC_URI = " \
git://github.com/nwg-piotr/azote.git;protocol=https;branch=master \
file://0001-dist-azote-avoid-usage-of-deprecated-distutils-modul.patch \
"
RDEPENDS:${PN} = " \