[Pytest-commit] Issue #117: Tox 1.6.0 breaks when running tests under Python 2.5 (pip < 1.4 doesn't seem to support --insecure option) (hpk42/tox)

Tomaz Muraus issues-reply at bitbucket.org
Sat Aug 17 17:40:10 CEST 2013


New issue 117: Tox 1.6.0 breaks when running tests under Python 2.5 (pip < 1.4 doesn't seem to support --insecure option)
https://bitbucket.org/hpk42/tox/issue/117/tox-160-breaks-when-running-tests-under

Tomaz Muraus:

Newest version of tox (1.6.0) uses pip < 1.4 when running tests with Python 2.5 and passes `--insecure` option to pip when installing the dependencies.

The problem is that pip doesn't seem to support `--insecure` argument and even the new versions of pip use `--allow-insecure` and not `--insecure`.

Error (I've truncated all the environment variables)

```bash
kami /w/lc/libcloud (git:trunk)$ rm -rf .tox ; tox -e py25
GLOB sdist-make: /w/lc/libcloud/setup.py
py25 create: /w/lc/libcloud/.tox/py25
py25 pip-downgrade: pip<1.4
py25 installdeps: mock, unittest2, lockfile, ssl, simplejson, paramiko
py25 inst: /w/lc/libcloud/.tox/dist/apache-libcloud-0.14.0-dev.zip
ERROR: invocation failed, logfile: /w/lc/libcloud/.tox/py25/log/py25-3.log
ERROR: actionid=py25
msg=installpkg
cmdargs=[local('/w/lc/libcloud/.tox/py25/bin/pip'), 'install', '--insecure', '/w/lc/libcloud/.tox/dist/apache-libcloud-0.14.0-dev.zip']
env={'PYTHONIOENCODING': 'utf_8', ....}

Usage:   
  pip install [options] <requirement specifier> ...
  pip install [options] -r <requirements file> ...
  pip install [options] [-e] <vcs project url> ...
  pip install [options] [-e] <local project path> ...
  pip install [options] <archive url/path> ...

no such option: --insecure

___________________________________________ summary ____________________________________________
ERROR:   py25: InvocationError: /w/lc/libcloud/.tox/py25/bin/pip install --insecure /w/lc/libcloud/.tox/dist/apache-libcloud-0.14.0-dev.zip (see /w/lc/libcloud/.tox/py25/log/py25-3.log)
```

Tox version:

```bash
tox --version
1.6.0 imported from /usr/local/lib/python2.7/dist-packages/tox/__init__.pyc
```

Pip version which get installed under Python 2.5 environments:

```bash
/w/lc/libcloud/.tox/py25/bin/pip --version
pip 1.3.1 from /w/lc/libcloud/.tox/py25/lib/python2.5/site-packages/pip-1.3.1-py2.5.egg (python 2.5)
```

Thanks




More information about the pytest-commit mailing list