Skip to content

Conversation

@YapWC
Copy link
Contributor

@YapWC YapWC commented Jan 9, 2026

Added an info section in toga/docs/en/reference/platforms/linux/gtk-prerequisites.md to inform user python development libraries installation requirement if using specific python version.

This solve the problem for user who would like to use specific python version for toga. As by default python3 is used and python3 development libraries are installed. For different python version, user would have to install the specific version of python3 development libraries.

Fixes #3861

PR Checklist:

  • All new features have been tested
  • [] All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

Informing python development libraries installation requirement if using specific python version.
Copy link
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR; a couple of notes inline.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changenote is a draft of a release note. That means it should be phrased in terms of "the amazing new feature that now exists!", not a commit message describing the minor details of what has been changed. Something like "GTK documentation now includes details on using a specific Python version" would be the framing here.

However - in this case, while important, the change is a relatively minor improvement to docs. It doesn't really warrant a line in the release notes. To that end, it should be a misc.md.


As for Arch/Manjaro/FreeBSD the python development libraries are included as part of `python3`.

///
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have specific subsections for each platform - platform specific notes should be part of those platforms, not a separate set of bullet points.

In the case of Debian/Ubuntu: Debian itself only includes a single Python version as part of system packages; if a user is hitting this, it's because they're using Deadsnakes or an equivalent. That's worth calling out specifically.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @freakboy3742 , so you would suggest breaking all the bullet points into the respective platform specific notes? Am I getting it right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I add

If you are using an additional Python version from Deadsnakes or a similar third‑party repository, you must also install the corresponding pythonX.Y-dev package for that interpreter (for example, python3.12-dev

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @freakboy3742 , so you would suggest breaking all the bullet points into the respective platform specific notes? Am I getting it right?

That's correct.

Should I add

If you are using an additional Python version from Deadsnakes or a similar third‑party repository, you must also install the corresponding pythonX.Y-dev package for that interpreter (for example, python3.12-dev

Something like that, yes.

@freakboy3742
Copy link
Member

One last thing - there's also a prerequisites document for Qt in the same folder that will require very similar changes.

YapWC and others added 4 commits January 12, 2026 12:05
Modified docs placement in gtk-prerequisite.
Change description for change note 3861.
Added python development lib requirement for different python version for qt-prerequisite.
@YapWC
Copy link
Contributor Author

YapWC commented Jan 12, 2026

Updated the docs based on the comment given.

Copy link
Member

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks; I've applied some additional fixes, tweaking grammar, and changing ordering so that we clarify the instructions after we've given them - but this was helpful as a first draft.

@freakboy3742 freakboy3742 merged commit d68561f into beeware:main Jan 13, 2026
112 of 113 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Python development package version mismatch during setup

2 participants