Fix #101873: wmic not found on insider builds of Windows 11 #101874
No reviewers
Labels
No Label
Priority::High
Priority::Low
Priority::Normal
Status::Archived
Status::Confirmed
Status::Duplicate
Status::Needs Information from Developers
Status::Needs Triage
Status::Resolved
Type::Bug
Type::Design
Type::Report
Type::To Do
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: infrastructure/blender-open-data#101874
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "xavierh/blender-open-data:xavierh-patch-1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
use powershell instead
Note I've only verified on my machine - I don't have a dual socket Windows system to verify these changes on.
I am not sure if powershell is available o nWindows 8, and whether it is always guaranteed to be called
powershell
and notpwsh
. Maybe Ray have some better insights. I can't tag him here, perhaps because he is not in the infra team.not a frequent powershell user, but according to wikipedia windows 10 and 11 come with powershell 5.1 out of the box (which uses powershell.exe) so that should be ok.
windows 8.x won't have it though, so we may have to do a
Ah, I didn't picture Windows 8 was still supported.
Rather than testing if wmic exists, checking on windows version directly sounds cleaner/easier to maintain.
I've added a commit to do this and then.. code looked a bit big in this area, I moved it to cpu_cores and then noticed it was an already existing library. I'm not sure if you want to keep the code separate or extend cpu_cores as I did?
The current build instructions didn't fly on my machine (not finding autogen.sh in freetype when building from msys2/mingw64), I've only tested my changes in python outside of the launcher.
Rather than knowing for sure the thing you're about to execute exists feels cleaner than making the assumption it exists based on on a different heuristic? I'm not sure i agree with that, on the other hand, I expect your way to still work just fine
I have been a bit vague on my reasons but I believe I have quite good ones:
Checkout
From your project repository, check out a new branch and test the changes.