How to include gtk+ 4 as a dependency in python package setup file?

Viewed 24

Background

  • I have used GTK+4 framework for a UI (my first time with GTK).
  • While developing, I had installed the framework (GObject, etc) on my Fedora using the dnf package manager, as instructed.

Problem

How do I include GTK+ 4 (imported as Gtk and Gdk from gi in my python scripts) as a dependency in the setup.cfg (or requirements.txt)?

Belief

subject to correction

Since pip can't install GTK+4 framework, I can never include GTK+4 as a pip dependency for my project. I must provide the link to install GTK+4 in some INSTALL.md instructions file. Won't this irritate the user? I can't simply tell them to pip install <my-project>.

0 Answers
Related