Thanks for the reply. It is weird the pip will be changed into 1.3.1 after I run tox -e py27. Here is the process I run:
gongysh@gongysh-ThinkPad-T530:/opt/stack/python-neutronclient$ .tox/py27/bin/pip --version pip 1.3.1 from /mnt/data/opt/stack/python-neutronclient/.tox/py27/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg (python 2.7) I upgrade the pip into 1.4.1: gongysh@gongysh-ThinkPad-T530:/opt/stack/python-neutronclient$ .tox/py27/bin/pip install -U pip gongysh@gongysh-ThinkPad-T530:/opt/stack/python-neutronclient$ .tox/py27/bin/pip --version pip 1.4.1 from /mnt/data/opt/stack/python-neutronclient/.tox/py27/lib/python2.7/site-packages (python 2.7) gongysh@gongysh-ThinkPad-T530:/opt/stack/python-neutronclient/.tox/py27/lib/python2.7/site-packages$ ls easy-install.pth pip pip-1.4.1-py2.7.egg-info setuptools-0.6c11-py2.7.egg setuptools.pth Then I run tox -e py27 and it failed: gongysh@gongysh-ThinkPad-T530:/mnt/data/opt/stack/python-neutronclient$ tox -e py27 GLOB sdist-make: /mnt/data/opt/stack/python-neutronclient/setup.py py27 create: /mnt/data/opt/stack/python-neutronclient/.tox/py27 py27 installdeps: -r/mnt/data/opt/stack/python-neutronclient/requirements.txt, -r/mnt/data/opt/stack/python-neutronclient/test-requirements.txt ERROR: invocation failed, logfile: /mnt/data/opt/stack/python-neutronclient/.tox/py27/log/py27-1.log ERROR: actionid=py27 msg=getenv cmdargs=[local('/mnt/data/opt/stack/python-neutronclient/.tox/py27/bin/pip'), 'install', '--pre', '-r/mnt/data/opt/stack/python-neutronclient/requirements.txt', '-r/mnt/data/opt/stack/python-neutronclient/test-requirements.txt'] I check the pip version in .tox: gongysh@gongysh-ThinkPad-T530:/mnt/data/opt/stack/python-neutronclient$ .tox/py27/bin/pip --version pip 1.3.1 from /mnt/data/opt/stack/python-neutronclient/.tox/py27/lib/python2.7/site-packages/pip-1.3.1-py2.7.egg (python 2.7) It is changed back!!! Regards, Yong Sheng Gong On Thu, Sep 19, 2013 at 9:02 AM, Jeremy Stanley <fu...@yuggoth.org> wrote: > On 2013-09-19 08:12:47 +0800 (+0800), Yongsheng Gong wrote: > [...] > > $ tox -e py27 > [...] > > no such option: --pre > [...] > > $ tox --version > > 1.6.1 imported from /usr/local/lib/python2.7/dist-packages/tox/ > > __init__.pyc > > $ pip --version > > pip 1.4.1 from /usr/local/lib/python2.7/dist-packages/ > > pip-1.4.1-py2.7.egg (python 2.7) > [...] > > You may have an existing .tox/py27 virtualenv with an earlier > version of pip already installed and tox is reusing it. Running > '.tox/py27/bin/pip --version' should tell you. If you pass the -r > switch to tox when running like 'tox -e py27 -r' it should clear any > existing virtualenv and create a fresh one, or you can upgrade the > pip inside it with '.tox/py27/bin/pip install -U pip' if you want. > -- > Jeremy Stanley > > _______________________________________________ > OpenStack-dev mailing list > OpenStack-dev@lists.openstack.org > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev >
_______________________________________________ OpenStack-dev mailing list OpenStack-dev@lists.openstack.org http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev