[Pytest-commit] Issue #156: whitelist_externals ignored (hpk42/tox)

Seán Hayes issues-reply at bitbucket.org
Wed Mar 12 08:11:15 CET 2014


New issue 156: whitelist_externals ignored
https://bitbucket.org/hpk42/tox/issue/156/whitelist_externals-ignored

Seán Hayes:

I'm using python 2.7 and tox 1.7.0 on Ubuntu 13.04.

Here's part of my tox.ini file:

```
[testenv]
whitelist_externals = *
setenv =
    PYTHONPATH = {toxinidir}:{toxinidir}/tests
commands =
    cd {envdir}/ && wget https://pypi.python.org/packages/source/p/pysqlite/pysqlite-2.6.3.tar.gz#md5=7ff1cedee74646b50117acff87aa1cfa
    cd {envdir}/ && tar -xvf pysqlite-2.6.3.tar.gz
    cd {envdir}/pysqlite-2.6.3/ && python setup.py build_ext -U SQLITE_OMIT_LOAD_EXTENSION
    cd {envdir}/pysqlite-2.6.3/ && python setup.py develop
    
    {envbindir}/django-admin.py test core --settings=settings_core
```

I need to customize the build before installing, and the only way I could think to do that is put it in commands.

I tried whitelisting `cd` and the other commands I need but got:

"ERROR: InvocationError: could not find executable 'cd'"

Even when whitelsiting everything, I get the same error.




More information about the pytest-commit mailing list