Generate gresources bundle in setup.py
Thomas Ross
3 years ago
0 | 0 | #!/usr/bin/env python3 |
1 | 1 | |
2 | 2 | import os |
3 | import subprocess | |
3 | 4 | |
4 | 5 | from distutils.core import setup, Extension |
5 | 6 | |
51 | 52 | os.mkdir("mo/" + lang + "/") |
52 | 53 | print("generating", mofile) |
53 | 54 | os.system("msgfmt %s -o %s" % (pofile, mofile)) |
55 | ||
56 | ||
57 | print("Generating gresources bundle") | |
58 | subprocess.call( | |
59 | [ | |
60 | "glib-compile-resources", | |
61 | "--sourcedir=resources", | |
62 | "--target=io.thomasross.mirage.gresource", | |
63 | "resources/mirage.gresource.xml", | |
64 | ] | |
65 | ) | |
54 | 66 | |
55 | 67 | setup( |
56 | 68 | name="Mirage", |