Python Vulnerabilities

Hi All,

Does anyone know how to modify KiCad 7.0 and/or the newest version to point to an already existing Python installation? I ask due to the fact that Python has a never-ending supply of vulnerabilities that set off alarms for our security monitoring.

Being able to update our Python without having to update KiCad and potentially disrupt our workflow with the product would be VERY useful.

Thank you for your assistance in this matter,

Chris

what distribution?
Any serious distribution would bump python in response to a security concern AND then rebuild any dependencies that will have an ABI mismatch and thus the next update will be consistent to itself

We’re running on Windows and only have 2-3 users on KiCad 7.0 at the moment. Is there documentation on the rebuild options that could help us to customize the installation to use pre-installed Python instead of the one that comes with KiCad @ C:\Users*user*\AppData\Local\Programs\KiCad\7.0\bin\python.exe

Kicad doesn’t just use python, it links against python and uses it as embedded scripting language. You can’t just switch python version, you need python sources (or at least headers) and rebuild kicad while pointing it to your python. If you are ready to dive into it then there is a PYTHON_HOME (or something similar) cmake flag you can pass. But beware, there be dragons, aka wxwidgets/wxpython compilation hell.

You can just delete python.exe. that’ll probably squash the security scanner vomit and python will still work in kicad. Hah