Open ivar-lazzaro opened 5 years ago
hi @ivar-lazzaro this is a known (yet undocumented) issue.
I haven't found a reliable way around this, without potentially adding a compromising whitelist to the default settings.
My understanding is that pipenv doesn't copy the python binary in the same way that venv would, so the binary it's calling is elsewhere
tox version = 3.5.3 tox-pipenv version = 1.8.0
Running tox using tox-pipenv produces the following output:
Tests pass correctly, but the above warning indicates that my venv's python binary was used instead of that installed in the tox envbindir. Digging a bit into tox code, I found the following in config.py:
where envdir points to "/Users/myself/workspace/project/.tox/py36", whereas tox-pipenv creates the virtual environment in /Users/myself/workspace/project/.tox/py36/.venv
If I try to override envdir in my tox.ini to point to .tox/py36/.venv, then tox creates .tox/py36/.venv/.venv :)
Adding "python" to whitelist_externals suppresses the warning, but I wonder if envdir shouldn't point to the actual environment directory instead.