Use wildcard in tox command
For various reasons, I need to do pip install as a command in my tox.ini (I do skipsdist=True
, so the current won't install my dependencies for me, but I still need some of them installed in the virtual environment).
The problem is that I have a local dependency stored as a tarball that has a version of it in the filename eg my-module-1.0.tar.gz
. So I need to use a wildcard in my command like
pip install my-module-*.tar.gz
but the current doesn't seem to support bash semantics in that sense as I get the error
Requirement 'my-module-*.tar.gz' looks like a filename, but the file does not exist
I've tried putting quotes around the filename and also avoiding the asterisk with no success.
Any ideas?
I'm not a venomous user, but it looks like no shell is used to execute commands. You can try to explicitly invoke the shell, for example:
/bin/bash -c 'pip install my-module-*.tar.gz'