From 384068624151ad37babdfefca61d40ebf6c84526 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 18 Dec 2020 19:55:52 +1000 Subject: [PATCH] pin pyaudio and qtmultimedia --- qt/aqt/pinnedmodules.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/qt/aqt/pinnedmodules.py b/qt/aqt/pinnedmodules.py index 70c7b86a4..e18ebf0fd 100644 --- a/qt/aqt/pinnedmodules.py +++ b/qt/aqt/pinnedmodules.py @@ -1,10 +1,14 @@ # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html +# pylint: disable=import-error,unused-import + +""" # this file is imported as part of the bundling process to ensure certain # modules are included in the distribution -# pylint: disable=import-error,unused-import +isort:skip_file +""" # included implicitly in the past, and relied upon by some add-ons import cgi @@ -21,12 +25,17 @@ import queue import typing import uuid +# other modules we require that may not be automatically included import PyQt5.QtSvg +import PyQt5.QtMultimedia import socks +import pyaudio # legacy compat import anki.storage import anki.sync + +# platform-specifics from anki.utils import isLin, isMac, isWin if isWin: @@ -38,7 +47,3 @@ if isWin: if isLin: # file locking import fcntl - -if isMac: - # recording - import PyQt5.QtMultimedia