mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
configure: check for pytest with python -m pytest
On different distro, pytest is suffixed with different patterns. On the other hand, `python3-pytest' could be invoked correctly, via `python3 -m pytest', the latter is used by our tests, now. Switch to `$python -m pytest` to fix address all incompatible naming. Signed-off-by: Đoàn Trần Công Danh <congdanhqx@gmail.com>
This commit is contained in:
parent
0e4695abaa
commit
e4c4cc1b34
1 changed files with 1 additions and 1 deletions
2
configure
vendored
2
configure
vendored
|
@ -812,7 +812,7 @@ if [ $have_python3 -eq 1 ]; then
|
|||
printf "Checking for python3 pytest (>= 3.0)... "
|
||||
conf=$(mktemp)
|
||||
printf "[pytest]\nminversion=3.0\n" > $conf
|
||||
if pytest-3 -c $conf --version >/dev/null 2>&1; then
|
||||
if "$python" -m pytest -c $conf --version >/dev/null 2>&1; then
|
||||
printf "Yes.\n"
|
||||
have_python3_pytest=1
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue