anki: fix 'distutils' not found

This commit is contained in:
virinci 2023-10-12 07:27:37 +05:30 committed by Andrew J. Hesford
parent f15333990c
commit 2eb666ab15
2 changed files with 9 additions and 1 deletions

View File

@ -0,0 +1,8 @@
--- a/anki/mpv.py
+++ b/anki/mpv.py
@@ -39 +39 @@ import inspect
-from distutils.spawn import find_executable # pylint: disable=import-error,no-name-in-module
+from shutil import which
@@ -68 +68 @@ class MPVBase:
- executable = find_executable("mpv")
+ executable = which("mpv")

View File

@ -1,7 +1,7 @@
# Template file for 'anki'
pkgname=anki
version=2.1.15
revision=6
revision=7
build_style=gnu-makefile
depends="python3-PyQt5-webengine python3-requests python3-SQLAlchemy
python3-PyAudio python3-mpv python3-Markdown python3-send2trash