summaryrefslogtreecommitdiff
path: root/docs/packagingguide.rst
blob: d95363886e11e7de2aedc31a2e6ae51d456d66e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Packaging Guide
===============

Some notes on how to package PyGObject

Source packages can be found at
https://download.gnome.org/sources/pygobject

Existing Packages:

* https://www.archlinux.org/packages/extra/x86_64/python-gobject
* https://tracker.debian.org/pkg/pygobject
* https://github.com/Alexpux/MINGW-packages/tree/master/mingw-w64-pygobject

Building::

    python3 setup.py build
    python3 setup.py test # if you want to run the test suite
    python3 setup.py install --prefix="${PREFIX}" --root="${PKGDIR}"

Runtime dependencies:

    * glib
    * libgirepository (gobject-introspection)
    * libffi
    * Python 3

    The overrides directory contains various files which includes various
    Python imports mentioning gtk, gdk etc. They are only used when the
    corresponding library is present, they are not direct dependencies.

Build dependencies:

    * The runtime dependencies
    * cairo (optional)
    * pycairo (optional)
    * pkg-config
    * setuptools (optional)

Test Suite dependencies:

    * The runtime dependencies
    * GTK 4 (optional)
    * pango (optional)
    * pycairo (optional)