removed glib-compile-schemas from setup.py

This commit is contained in:
Martin Wagner 2020-08-28 09:39:33 +02:00
parent 7f83de07c2
commit add623473c
2 changed files with 5 additions and 14 deletions

View File

@ -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
```

View File

@ -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}
)