Skip to content
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

fix: report cmake/ninja requried if already present #462

Merged
merged 1 commit into from
Aug 14, 2023

Conversation

henryiii
Copy link
Collaborator

Fix #458.

@bennyrowland, I think this either fixes this or is a good start.

Copy link
Collaborator

@bennyrowland bennyrowland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running this version fixes running my project via tox, so I am very happy with it. I note that there aren't any additional tests to check for this behaviour - is this something that is worth adding, or are you happy that it is a small enough change. Adding a test would be quite challenging with the current changes to protect_get_requires() as that explicitly always says that cmake/ninja are not installed (and is autoused), so we can't test that they are still requested when they are installed.

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
@henryiii
Copy link
Collaborator Author

I'm okay with it for now, I think (especially since I saw it broke the tests as expected without the modification above).

@henryiii henryiii merged commit 82a7688 into main Aug 14, 2023
44 checks passed
@henryiii henryiii deleted the henryiii/fix/toxcache branch August 14, 2023 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

get_requires_for_build_wheel confuses tox4 by not requesting cmake if it is in the build venv
2 participants