whitelist_externals ignored

Issue #156 on hold
Sean Hayes created an issue

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

Here's part of my tox.ini file:

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.

Comments (3)

  1. Holger Krekel repo owner

    cd is a shell command and there is no executable. tox itself would need to understand cd. This all has nothing to do with whitelist_externals which only silences warnings about executables not coming from the tox created venv.

    If you need support for cd within commands, please open a new issue saying so and mark it as enhancement.

  2. Log in to comment