[tox] Ensure virtualenv's python is used to build the documentation 3.22
authorDenis Laxalde <denis.laxalde@logilab.fr>
Tue, 28 Jun 2016 15:02:04 +0200
branch3.22
changeset 11392 12bebe48b451
parent 11387 51e988f9870e
child 11405 5ba55f4c813a
[tox] Ensure virtualenv's python is used to build the documentation
tox.ini
--- a/tox.ini	Fri Jun 24 13:08:52 2016 +0200
+++ b/tox.ini	Tue Jun 28 15:02:04 2016 +0200
@@ -24,8 +24,7 @@
 
 [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