Daniel Gonçalves
Daniel Gonçalves

Reputation: 25

Can someone help in compile a GTK/PyGObject All-in-one for Python 3.7?

We used to distribute (for Windows) a very large Python 2/PyGTK application by packaging Python installer itself along other needed installers and packages through an InnoSetup script. Among with those other installers and packages we deliver an all-in-one PyGTK package and it worked very well.

Now we've converted our software for Python 3 and GTK 3. Ok, there is an all-in-one for PyGI [1] (PyGObject Introspection), but just for Python 2.7 to 3.4 and we need at least Python 3.7.

I've spent last couple of weeks learning MSYS2 and trying to understand how MyPaint or Gaphor (which are similar apps) are distributed for Windows without success. I am able to download and install GTK and PyGI using pacman on MSYS2/MingW64 but I cannot figure out how can I create such a package like PyGI all-in-one. I asked for help or instructions on SourceForge but I got no responses so far.

I am asking for help or any clues on how can I generate a PyGI-all-in-one-like installer. Thanks in advance!

[1] https://sourceforge.net/projects/pygobjectwin32/

Upvotes: 1

Views: 569

Answers (1)

Dan Yeaw
Dan Yeaw

Reputation: 800

You can bundle a PyGObject app in Windows using PyInstaller. It can be used with either MSYS2 or gvsbuild to find and bundle all the GTK libraries you need. Then you can use your InnoSetup script to create an installer.

Upvotes: 1

Related Questions