[tox] Ensure virtualenv's python is used to build the documentation 3.23
authorDenis Laxalde <denis.laxalde@logilab.fr>
Tue, 28 Jun 2016 15:02:04 +0200
branch3.23
changeset 11390 e5453b19bc6e
parent 11389 dcfc446d8eae
child 11391 9294fa5bc336
[tox] Ensure virtualenv's python is used to build the documentation
tox.ini
--- a/tox.ini	Mon Jun 27 14:17:19 2016 +0200
+++ b/tox.ini	Tue Jun 28 15:02:04 2016 +0200
@@ -44,11 +44,10 @@
 
 [testenv:doc]
 changedir = doc
-whitelist_externals =
-  sphinx-build
 deps =
   sphinx
-commands = sphinx-build -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html
+commands =
+  {envpython} -c 'import sphinx; sphinx.main()' -b html -d {envtmpdir}/doctrees .  {envtmpdir}/html
 
 [pytest]
 python_files = *test_*.py