-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Fix/Add check_output_timestamps to PythonEnvironment #4113
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
Conversation
I can't seem to reproduce this, n2 (from |
Here is the difference this pr makes for me: Peek.2025-06-21.23-53.mp4Is there something to do with On main this is the output of
|
n2 is intended to be used instead of ninja (which doesn't support the |
using n2 fixes this for me but It's still worth fixing for ninja users right? |
This reverts commit ace2e5e.
Dug into this a bit (discussed over discord), and from looking at ninja's source it seems to check for the Which means that every statement ends up getting |
The build scripts try to support both n2 and ninja. @iamllama I'm not sure I'm following your comment - I thought you meant we were doing restat = 0 (which wouldn't work), but the code appears to be only conditionally writing it:
Could you clarify? |
Thanks Luc! |
Ah, gotcha. I was familiar with this issue, as I made the same mistake with assuming 0 = off with n2 in the past. 😅 |
restat
defaults to 1 (Though the docs don't make it seem that way?) meaning that.check_output_timestamps()
doesn't do anything.This, for me, fixes the python environment rebuilding every run.