The module is for the most part generated using scripts in the script subfolder.
The .NET SDK (8+) is required to build LibreHardwareMonitorLib.
On Windows, the .NET Framework 4.7.2 targeting pack must also be installed (included with Visual Studio or available as a standalone installer).
Required only when rebuilding PyStubbler from source (i.e. after updating the pythonstubs submodule).
If the PyStubbler.exe binary already exists at submodules/pythonstubs/builder/bin/PyStubbler.exe, this step is skipped automatically.
Load the VisualStudio project file located at submodules/pythonstubs/builder.
Build the PyStubblerNET solution for Release configuration and x64 target.
All steps — including compiling the .NET projects — can be run in one command:
py scripts/generate_all.pyThis script performs the following actions
- Build PyStubbler (skipped if already compiled)
- Build
LibreHardwareMonitorLibforx64,x86, andARM64 - Copy the resulting DLLs into
HardwareMonitor/lib/{platform}/ - Regenerate all
.pyistub files - Regenerate all namespace
__init__.pyfiles
Note: It is assumed that Python is installed on Windows with the pylauncher option set, and that
dotnetis available on PATH.