Переглянути джерело

Merge pull request #44 from tobias47n9e/master

Update PyGI/PyGObject example to compile glib-schemas
Thomas Kluyver 10 роки тому
батько
коміт
f51153c52b

+ 3 - 0
examples/pygi_mpl_numpy/2_extract.sh

@@ -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 - 0
examples/pygi_mpl_numpy/README.rst

@@ -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/
+