Compile “gresources” and “gschemas” via setuptools
This commit is contained in:
parent
c5d7e75236
commit
e0d01f1f18
4 changed files with 37 additions and 9 deletions
21
setup.py
21
setup.py
|
|
@ -3,13 +3,34 @@
|
|||
|
||||
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
from setuptools import setup
|
||||
from setuptools.command.build_py import build_py
|
||||
|
||||
|
||||
|
||||
|
||||
class build_mcg(build_py):
|
||||
def run(self):
|
||||
build_py.run(self)
|
||||
self._build_gresources()
|
||||
self._build_gschemas()
|
||||
|
||||
def _build_gresources(self):
|
||||
print("compiling gresources")
|
||||
subprocess.run(['glib-compile-resources', 'de.coderkun.mcg.gresource.xml'], cwd='data')
|
||||
|
||||
|
||||
def _build_gschemas(self):
|
||||
print("compiling gschemas")
|
||||
subprocess.run(['glib-compile-schemas', 'data'])
|
||||
|
||||
|
||||
|
||||
|
||||
setup(
|
||||
cmdclass = {'build_py': build_mcg},
|
||||
name = "MPDCoverGrid",
|
||||
version = "0.6",
|
||||
description = "MPDCoverGrid is a client for the Music Player Daemon, focused on albums instead of single tracks.",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue