Remove pyaudio as mandatory dependency

Pyaudio on Windows is difficult to install and complicates things
when someone is using the wheels just for autocomletion on IDEs as
PyCharm:
https://anki.tenderapp.com/discussions/add-ons/44009-problems-with-code-completion
This commit is contained in:
evandrocoan 2020-05-03 22:00:58 -03:00
parent 36ea980725
commit 1e4748d45e
2 changed files with 9 additions and 2 deletions

View file

@ -123,6 +123,9 @@ jobs:
echo "::set-env name=RSPY_TARGET_DIR::${GITHUB_WORKSPACE}/target"
echo "::set-env name=CARGO_TARGET_DIR::${GITHUB_WORKSPACE}/target"
# https://anki.tenderapp.com/discussions/add-ons/44009-problems-with-code-completion
echo "::set-env name=ANKI_EXTRA_PIP::python -m pip install pyaudio"
- name: Configure Mac OS environment variables
if: matrix.os == 'macos-latest'
run: |
@ -141,6 +144,9 @@ jobs:
# https://stackoverflow.com/questions/59644349/msgmerge-on-macos-catalina
echo "::set-env name=PATH::/usr/local/opt/gettext/bin:$PATH"
# https://anki.tenderapp.com/discussions/add-ons/44009-problems-with-code-completion
echo "::set-env name=ANKI_EXTRA_PIP::python -m pip install pyaudio"
- name: Configure Windows environment variables
if: matrix.os == 'windows-latest'
run: |
@ -342,7 +348,7 @@ jobs:
run: |
set -x
cd dist
python -m pip install pyqtwebengine *.*
python -m pip install pyqtwebengine pyaudio *.*
python -c "import aqt; # aqt.run()"
- run: make check

View file

@ -24,9 +24,10 @@ install_requires = [
"beautifulsoup4",
"requests",
"send2trash",
"pyaudio",
"markdown",
"jsonschema",
# "pyaudio", # https://anki.tenderapp.com/discussions/add-ons/44009-problems-with-code-completion
# "pyqtwebengine", # https://github.com/ankitects/anki/pull/530 - Set to checks.yml install and import anki wheels
"pyqt5>=5.9",
'psutil; sys.platform == "win32"',
'pywin32; sys.platform == "win32"',