[Pytest-commit] Issue #128: install_command doesnt interpolate {toxinidir} (hpk42/tox)
Ronald Evers
issues-reply at bitbucket.org
Tue Oct 8 23:42:31 CEST 2013
New issue 128: install_command doesnt interpolate {toxinidir}
https://bitbucket.org/hpk42/tox/issue/128/install_command-doesnt-interpolate
Ronald Evers:
I'm running into a wall trying to make pip use a custom ssl ca bundle with tox. I ended up trying to customize the install_command like so:
install_command=pip install --pre --cert={toxinidir}/my_ca_store.pem {opts} {packages}
But it appears tox is not interpolating the {toxinidir} construct in there and is just the command with "--cert={toxinidir}" in the command literally. See the output below. Am I missing something or is this a bug? By the way, it does work when I use an explicit and absolute path like so: "--cert=/Users/ronald/.../my_ca_store.pem".
```
#!python
(scratch)[ronald at thing] ~/hg/tox # tox
GLOB sdist-make: /Users/ronald/hg/tox/setup.py
py27 create: /Users/ronald/hg/tox/.tox/py27
py27 installdeps: pytest
ERROR: invocation failed, logfile: /Users/ronald/hg/tox/.tox/py27/log/py27-1.log
ERROR: actionid=py27
msg=getenv
cmdargs=[local('/Users/ronald/hg/tox/.tox/py27/bin/pip'), 'install', '--pre', '--cert={toxinidir}/my_ca_store.pem', 'pytest']
env={<cut>}
Downloading/unpacking pytest
Could not fetch URL https://pypi.python.org/simple/pytest/: There was a problem confirming the ssl certificate: <urlopen error [Errno 185090050] _ssl.c:340: error:0B084002:x509 certificate routines:X509_load_cert_crl_file:system lib>
```
As you can see, it does interpolate the "{packages}" but not the "{toxinidir}".
More information about the pytest-commit
mailing list