-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add an option to disable Python at startup #60462
base: master
Are you sure you want to change the base?
Conversation
🪟 Windows buildsDownload Windows builds of this PR for testing. 🪟 Windows Qt6 buildsDownload Windows Qt6 builds of this PR for testing. |
Co-authored-by: Nyall Dawson <[email protected]>
for more information, see https://pre-commit.ci
The QGIS project highly values your contribution and would love to see this work merged! Unfortunately this PR has not had any activity in the last 14 days and is being automatically marked as "stale". If you think this pull request should be merged, please check
|
Description
This PR introduces a new command-line option
--nopython
to disable Python support at QGIS startup.While QGIS must be built with WITH_BINDINGS (default to true) to include Python support, this option provides a way to disable it at runtime without requiring a rebuild. This can be useful in scenarios where QGIS is installed with Python enabled, but the user wants to start it without Python for performance reasons or to avoid potential issues related to Python dependencies.
Of course, if the goal is to completely disable Python in QGIS, a more robust approach (such as compiling without WITH_BINDINGS) is necessary. This change is a first step to allow users more flexibility when managing Python usage in their QGIS environments.
cc @Djedouas @florentfgrs @troopa81