Package list mirage / 1081262
Generate gresources bundle in setup.py Thomas Ross 1 year, 6 months ago
1 changed file(s) with 12 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
00 #!/usr/bin/env python3
11
22 import os
3 import subprocess
34
45 from distutils.core import setup, Extension
56
5152 os.mkdir("mo/" + lang + "/")
5253 print("generating", mofile)
5354 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 )
5466
5567 setup(
5668 name="Mirage",