[openstack-dev] Tox deps issue trigger missing new packages installation

David Shrewsbury shrewsbury.dave at gmail.com
Thu Nov 15 22:02:36 UTC 2012


Tox installs dependencies on the first run, which is why subsequent runs
are faster. It won't recognize changes to the requirements files. Try running
with the --recreate option. It will be slower, but should pick up the changes.

-Dave


On Nov 15, 2012, at 11:04 AM, "Lu, Lianhao" <lianhao.lu at intel.com> wrote:

> Zhongyue,
> 
> I just looked at the tox  source code on my machine, tox doesn't do that. It simply treats that 2 as normal package names and pass them as the argument to pip in which case the '-r' prefix triggers the pip to look into those files.
> 
> The problem is that if I've run the tox once and tox has already recorded that deps, after I change the pip-require's content, tox thinks I still have the same deps so it won't trigger to update the old virtualenv by installing the new deps.
> 
> -lianhao
> 
> "Nah, Zhongyue" <zhongyue.nah at intel.com>编写:
> 
> 
> Hongna,
> 
> tox does check those files actually. I'm not sure what your env is like but at least I can tell you tox does look into those files. Maybe you can let me have a look at your logs?
> 
> -zhongyue
> 
> Sent from my iPhone
> 
> On Nov 15, 2012, at 5:26 PM, "Xu, HongnaX" <hongnax.xu at intel.com<mailto:hongnax.xu at intel.com>> wrote:
> 
> Hi all
>  we run tox case in nova every morning in one machine, but this morning I found an error show that “ERROR: Failure: ImportError (No module named fixtures)”, dig and the result seems tox issue or the special usage of tox in nova project.
> 
> In the file nova/tox.ini  line 16 and 17
> 
> deps = -r{toxinidir}/tools/pip-requires
>               -r{toxinidir}/tools/test-requires
> 
> Tox will treat the files pip-requires and test-requires as packages or something else, it doesn’t check the list in these two files, so any new package add to these two files will not be checked, either install.
> 
> Best Regards,
> Hongna
> 
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org<mailto:OpenStack-dev at lists.openstack.org>
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




More information about the OpenStack-dev mailing list