Merge pull request #611 from evandroforks/automatically_install_pyaudio_on_make_check
Automatically install pyaudio when running make check
This commit is contained in:
commit
436bdd6970
6
.github/workflows/checks.yml
vendored
6
.github/workflows/checks.yml
vendored
@ -123,9 +123,6 @@ 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: |
|
||||
@ -144,9 +141,6 @@ 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: |
|
||||
|
3
Makefile
3
Makefile
@ -61,8 +61,7 @@ all: run
|
||||
# - modern pip required for wheel
|
||||
# - add qt if missing
|
||||
pyenv:
|
||||
# https://github.com/PyO3/maturin/issues/283
|
||||
# Expected `python` to be a python interpreter inside a virtualenv
|
||||
# https://github.com/PyO3/maturin/issues/283 - Expected `python` to be a python interpreter inside a virtualenv
|
||||
set -eu -o pipefail ${SHELLFLAGS}; \
|
||||
"${PYTHON_BIN}" -m pip install virtualenv; \
|
||||
"${PYTHON_BIN}" -m venv pyenv; \
|
||||
|
@ -70,7 +70,11 @@ BUILD_STEPS := .build/vernum .build/run-deps .build/dev-deps .build/js .build/ui
|
||||
######################
|
||||
|
||||
.PHONY: check
|
||||
check: $(BUILD_STEPS) .build/mypy .build/test .build/fmt .build/imports .build/lint .build/ts-fmt
|
||||
check: pyaudio $(BUILD_STEPS) .build/mypy .build/test .build/fmt .build/imports .build/lint .build/ts-fmt
|
||||
|
||||
# https://github.com/ankitects/anki/pull/611 - Automatically install pyaudio when running make check
|
||||
pyaudio:
|
||||
python -m pip install pyaudio
|
||||
|
||||
.PHONY: fix
|
||||
fix: $(BUILD_STEPS)
|
||||
|
Loading…
Reference in New Issue
Block a user