[TIP] tox: force sdist installation
holger krekel
holger at merlinux.eu
Mon Jul 4 12:59:30 PDT 2011
Hi Alexander,
On Mon, Jul 04, 2011 at 15:32 +0200, Alexander Steinert wrote:
> Dear list,
>
> tox doesn't install my sdist if it has been installed by a previous tox run and
> its version doesn't increase. Is there a way to let tox call pip install with
> --upgrade or --ignore-installed only for the sdist to be used, not for the
> dependencies?
There is a branch/issue pending review which implements this mostly:
https://bitbucket.org/jorgeecardona/tox
> I experienced the mentioned behaviour when I called sphinx-build via tox (see
> tox.ini section below, Sphinx' conf.py is in doc/ !). Sphinx imports my package
> from the installed sdist. That is nice. However, the generated docs won't
> reflect my latest changes until I delete the virtual environment or uninstall
> the installed sdist.
IUC you could pass --recreate for the time being.
best,
holger
> TIA
> Stony
>
>
> [testenv:doc]
> basepython = python2.6
> commands =
> sphinx-build -c doc -W -b html [] . doc/_build/html
> deps =
> {toxinidir}/lib/docutils-0.7.tar.gz
> {toxinidir}/lib/Jinja2-2.5.5.tar.gz
> {toxinidir}/lib/Pygments-1.4.tar.gz
> {toxinidir}/lib/Sphinx-1.0.7.tar.gz
>
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python
>
More information about the testing-in-python
mailing list