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 5 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
@nyalldawson nyalldawson removed the Frozen Feature freeze - Do not merge! label Feb 21, 2025
Copy link

github-actions bot commented Mar 8, 2025

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

  • that all unit tests are passing

  • that all comments by reviewers have been addressed

  • that there is enough information for reviewers, in particular

    • link to any issues which this pull request fixes

    • add a description of workflows which this pull request fixes

    • add screenshots if applicable

  • that you have written unit tests where possible
    In case you should have any uncertainty, please leave a comment and we will be happy to help you proceed with this pull request.
    If there is no further activity on this pull request, it will be closed in a week.

@github-actions github-actions bot added the stale Uh oh! Seems this work is abandoned, and the PR is about to close. label Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Uh oh! Seems this work is abandoned, and the PR is about to close.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants