You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The readme indicates to use virtualenv.install_package('coverage', installer='pip'), but if I use that command as virtualenv.install_package('.', installer='pip'), it fails with Invalid command '.' and the command it's trying to run is pip -q . (no install command). That's unexpected. I would have expected installer='pip' to invoke pip install.
The text was updated successfully, but these errors were encountered:
I had the same issue. Also, pytest-virtualenv using easy_install by default might not be such a good idea, considering it's deprecated in favor of pip.
For anyone else who has this issue, a workaround is to use the pytest-venv plugin instead, which uses pip and also does some other things better (IMHO), e.g. it uses pytest's own tmpdir fixture so the venv temp dir will always be under pytest's base temp dir and have pytest's tmpdir features like preserving the last N temp dirs, whereas pytest-virtualenv uses a homegrown temp dir in os.getenv("WORKSPACE") / /tmp.
The readme indicates to use
virtualenv.install_package('coverage', installer='pip')
, but if I use that command asvirtualenv.install_package('.', installer='pip')
, it fails withInvalid command '.'
and the command it's trying to run ispip -q .
(noinstall
command). That's unexpected. I would have expectedinstaller='pip'
to invokepip install
.The text was updated successfully, but these errors were encountered: