Merge pull request #606 from evandroforks/remove_pyaudio_as_dependency

Remove pyaudio as mandatory dependency
This commit is contained in:
Damien Elmes 2020-05-04 13:37:19 +10:00 committed by GitHub
commit d98e3fa371
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"',