| 1 |
Packaging Guide |
| 2 |
=============== |
| 3 |
|
| 4 |
PyGObject uses Meson, here are some notes on how to package PyGObject. |
| 5 |
|
| 6 |
Source packages can be found at |
| 7 |
https://download.gnome.org/sources/pygobject |
| 8 |
|
| 9 |
Existing Packages: |
| 10 |
|
| 11 |
* https://archlinux.org/packages/extra/x86_64/python-gobject |
| 12 |
* https://tracker.debian.org/pkg/pygobject |
| 13 |
* https://github.com/MSYS2/MINGW-packages/tree/master/mingw-w64-pygobject |
| 14 |
|
| 15 |
Building:: |
| 16 |
|
| 17 |
meson setup --prefix /usr --buildtype=plain _build -Dc_args=... -Dc_link_args=... |
| 18 |
meson compile -C _build |
| 19 |
meson test -C _build |
| 20 |
DESTDIR=/path/to/staging/root meson install -C _build |
| 21 |
|
| 22 |
Runtime dependencies: |
| 23 |
|
| 24 |
* glib |
| 25 |
* libgirepository-2.0 (shipped with GLib ≥ 2.80) |
| 26 |
* libffi |
| 27 |
* Python 3 |
| 28 |
|
| 29 |
The overrides directory contains various files which includes various |
| 30 |
Python imports mentioning gtk, gdk etc. They are only used when the |
| 31 |
corresponding library is present, they are not direct dependencies. |
| 32 |
|
| 33 |
Build dependencies: |
| 34 |
|
| 35 |
* The runtime dependencies |
| 36 |
* cairo (optional) |
| 37 |
* pycairo (optional) |
| 38 |
* pkg-config |
| 39 |
* setuptools (optional) |
| 40 |
|
| 41 |
Test Suite dependencies: |
| 42 |
|
| 43 |
* The runtime dependencies |
| 44 |
* GTK 4 (optional) |
| 45 |
* pango (optional) |
| 46 |
* pycairo (optional) |