-
-
Notifications
You must be signed in to change notification settings - Fork 536
tox does not expand {opts} {packages} from inside install_command #594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @ssbarnea thanks for the issue - this feels very familiar though. Did you check if there is already an issue like that open? I seem to remember that this substitution is simply not applied to all keys. Might be easy to fix. Want to have a look? |
Digging through the code atm to properly understand another issue and look what I found: https://github.com/tox-dev/tox/blob/2.8.0/tox/config.py#L1092
So this is why. Dunno if and when we could/should change that behaviour. |
I believe we should manually fix up the commands section here. |
@ssbarnea e4d0d60 doesnt solve this, but it will probably change the error that occurs. I did toy with implementing However they could also have valid substitutions inside the substitution engine that are used if Implementing only |
That is a very old ticket and I am not aware of needing a change anymore. I do not even remember where I needed it so better to close it. |
This simplified example is supposed to test python environment for conflicts before and after installing the package but it fails with an exception like:
The current workaround is not to use expansion, duplicate the code and lose the ability to use
{opts}
and{packages}
.Please note that is impossible to use
install_command
on this environment because we need to run some commands before we install the package.The text was updated successfully, but these errors were encountered: