fix: dump subprocesses python versions - #730
Conversation
ahal
left a comment
There was a problem hiding this comment.
Nice, I like this line of thinking!
Initially I was going to suggest an output format that includes the Python binary name, file path and version.. but then I realized we can use uv in the run-task script.
So instead of messing with all this, you can run uv python list --only-installed. This command will output exactly what I was thinking and more. Plus it'll find Pythons that aren't even on the $PATH!
It's possible for run-task to run in a context where uv isn't installed, so you'll have to have a check for that (see the other place in run-task that already uses uv to see how), I think in this case it's fine to just omit the extra logging.
|
@ahal , I also create another pr with the UV command as the main check, let me know which one would be better : https://github.com/taskcluster/taskgraph/pull/733/files |
|
Thanks, I like the uv version better |
ahal
left a comment
There was a problem hiding this comment.
I think we should go with the uv version
Closes #7