Check enchant-2 exec presence in tox spelling job
[docs.git] / tox.ini
diff --git a/tox.ini b/tox.ini
index fdb60289c50db52df7316a9af60cc0cda42f10f8..69e2c714c35d6f6991a44b2d0a2ddc7c187d20e2 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -55,6 +55,6 @@ deps =
     PyEnchant
 whitelist_externals = sh
 commands =
-    sh -c 'command enchant>/dev/null || sudo yum -y install enchant || (echo "enchant command not found - please install it (e.g. sudo apt-get install enchant | yum install enchant )" >&2 && exit 1)'
+    sh -c 'command enchant>/dev/null || command enchant-2 -v>/dev/null || sudo yum -y install enchant || (echo "enchant command not found - please install it (e.g. sudo apt-get install enchant | yum install enchant )" >&2 && exit 1)'
     sphinx-build -q -W -b spelling -d {envtmpdir}/doctrees ./docs/ {toxinidir}/docs/_build/spelling