Skip to content

Try a first C/C++ build on Windows ​

Can a fresh Windows x64 installation with Python build C, C++, and a small CMake project without installing a compiler, CMake, or Ninja by hand?

Download this repository's source ZIP or clone it. From the extracted or cloned folder, open PowerShell and run:

powershell
.\scripts\clean-machine-demo.ps1

The demo requires Python 3.9 or newer and internet access. It installs CLAP 0.44.0 from PyPI into a temporary virtual environment and downloads the pinned Zig toolchain into an empty CLAP cache. It builds and runs three small programs, then removes the temporary environment and build files. Use -Version to test another published PyPI version explicitly.

text
C compile probe: ok
CPP compile probe: ok
hello from C
hello from C++
hello from CMake
Windows first-run demo passed.

An existing Windows validation VM simulated the first-run flow with isolated empty CLAP/Zig caches for 0.43.0: it passed in 53.57 seconds wall time, including 28.93 seconds of pinned toolchain download/verification and 24.48 seconds of cold Zig runtime compilation. That is evidence for the flow, but it is not a substitute for an independent fresh-VM report. This demo covers small projects and does not test MSVC-specific dependencies or Windows SDK workflows.

If you try it, report your Windows build, Python version, whether you started from a fresh VM, and the first failing command or final success line. Redact usernames and private paths from logs.