Skip to content
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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lbartoletti
Copy link
Member

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

@lbartoletti lbartoletti self-assigned this Feb 5, 2025
@github-actions github-actions bot added this to the 3.42.0 milestone Feb 5, 2025
Copy link

github-actions bot commented Feb 5, 2025

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit 00cf055)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit 00cf055)

@nyalldawson nyalldawson added the Frozen Feature freeze - Do not merge! label Feb 5, 2025
src/app/main.cpp Outdated Show resolved Hide resolved
src/app/main.cpp Outdated Show resolved Hide resolved
src/app/qgisapp.h Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frozen Feature freeze - Do not merge!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants