Skip to content

Commit

Permalink
Merge pull request #44 from tobias47n9e/master
Browse files Browse the repository at this point in the history
Update PyGI/PyGObject example to compile glib-schemas
  • Loading branch information
takluyver committed Apr 6, 2015
2 parents 4fedeef + dc36d3f commit f51153c
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/pygi_mpl_numpy/2_extract.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ done

#Remove pygi Folder
rm -r pygi

#Compile glib schemas
glib-compile-schemas pynsist_pkgs/gnome/share/glib-2.0/schemas/
16 changes: 16 additions & 0 deletions examples/pygi_mpl_numpy/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,19 @@ The include section requires the Python packages numpy, matplotlib (which are ta
dateutil
pyparsing

glib-schemas
------------

When the pygi-aio bundle is installed on a Windows-machine, the installer performs some post-installation compiling steps. After extracting the libraries from the bundle, compiling can be carried out on Linux, as long as the operating system used for packaging and the targeted operating system have the same bitness. For different bitnesses, use a virtual machine with desired bitness, install the bundle, and copy the compiled files back into your build directory.

An example are the glib-schemas which are required for the GtkFileChooserDialog to work properly. The script ``2_extract.sh`` will automatically call the following command to compile the glib-schemas:

::

glib-compile-schemas pynsist_pkgs/gnome/share/glib-2.0/schemas/

See also:

- https://github.com/takluyver/pynsist/issues/43
- https://sourceforge.net/p/pygobjectwin32/tickets/12/

0 comments on commit f51153c

Please sign in to comment.