From add623473cba741000121aca34c45c641bdacbc3 Mon Sep 17 00:00:00 2001 From: Martin Wagner Date: Fri, 28 Aug 2020 09:39:33 +0200 Subject: [PATCH] removed glib-compile-schemas from setup.py --- README.md | 5 ++++- setup.py | 14 +------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 30e7ab9..1ef8f69 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ Building -------- Build dependencies: -- DistUtilsExtra (python-distutils-extra) +- DistUtilsExtra Dependencies: - Gtk3 @@ -67,5 +67,8 @@ Run: git clone https://github.com/SoongNoonien/mpdevil.git cd mpdevil sudo python3 setup.py install +sudo glib-compile-schemas /usr/share/glib-2.0/schemas +sudo gtk-update-icon-cache +sudo update-desktop-database ``` diff --git a/setup.py b/setup.py index 3daf2e2..e220d9b 100644 --- a/setup.py +++ b/setup.py @@ -1,18 +1,7 @@ #!/usr/bin/python3 # -*- coding: utf-8 -*- -# This file is based on https://github.com/kassoulet/soundconverter -import os -import DistUtilsExtra.auto -class Install(DistUtilsExtra.auto.install_auto): - def run(self): - DistUtilsExtra.auto.install_auto.run(self) - # after DistUtilsExtra automatically copied data/org.mpdevil.gschema.xml - # to /usr/share/glib-2.0/schemas/ it doesn't seem to compile them. - glib_schema_path = os.path.join(self.install_data, 'share/glib-2.0/schemas/') - cmd = 'glib-compile-schemas {}'.format(glib_schema_path) - print('running {}'.format(cmd)) - os.system(cmd) +import DistUtilsExtra.auto DistUtilsExtra.auto.setup( name='mpdevil', @@ -26,6 +15,5 @@ DistUtilsExtra.auto.setup( ('share/icons/hicolor/48x48/apps/', ['data/mpdevil.png']), ('share/icons/hicolor/scalable/apps/', ['data/mpdevil.svg']) ], - cmdclass={'install': Install} )