mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-10-15 20:01:31 +00:00
* fix: pin the Python that builds CPython on Windows CPython's build needs a Python to run its own build scripts. Without a local Python 3.10-3.13, find_python.bat installs the newest pythonx86 from nuget. That became 3.15.0 on 2026-10-09, and 3.15 removed SourceFileLoader.load_module, which 3.12's makeopcodetargets.py calls: AttributeError: 'SourceFileLoader' object has no attribute 'load_module' Download Python 3.13.16 from nuget.org as its own dependency, with a hash (pythonarm64 on ARM64 hosts, pythonx86 elsewhere), and pass it to PCbuild as PYTHON, which find_python.bat takes before any other Python. PYTHONHOME and PYTHONPATH are dropped from that step, since PCbuild runs the scripts without -E. DEP_PYTHON_HOST points at an existing Python 3.10-3.13 instead, for machines that cannot reach nuget.org. Drop 01-windows-nuget.patch. It fixed the dead nuget.exe download link in find_python.bat, and that fallback is never reached now. Existing deps trees keep working: with no patch command, ExternalProject skips the patch step instead of re-applying the patch to patched sources. * fetch externals separately --------- Co-authored-by: yw4z <ywsyildiz@gmail.com>