On 10/24/2013 03:52 AM, Victor Sergeyev wrote:
Hello all,
I noticed, that when I run tests using tox I get some redundant modules
installed to tox virtual environments. At the moment, pep8 specific
requirements (such as pep8, flake8 and so on) are stated in
test-requirements.txt file, which is meant to contain testing specific
modules (nose, testtools, etc). So when we run tox, it installs those
unnecessary pep8 libraries into py26, py27 environments. The same is
true for pep8 environment - tox installs all libraries from
test-requirements.txt there, but only pep8 specific modules are actually
needed.
I think, it would be nice to move pep8 specific requirements from
test-requirements.txt to a separate file (pep8-requirements.txt,
perhaps) to avoid this situation. It would save network traffic and
reduce the time it takes to create virtual environments.
Thoughts? Does it sound reasonable?
Actually, not. The point of the test requirements is we've got
everything you need for tox, breaking it up and making it more
complicated seems counter productive.
# this massively speeds up pip install
export PIP_DOWNLOAD_CACHE=~/.pip/cache
Added to your .bashrc will reduce the network traffix needed for tox.
Also, I believe 1.6.1 will reuse envs by default.
-Sean
--
Sean Dague
http://dague.net
_______________________________________________
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev