mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
removed glib-compile-schemas from setup.py
This commit is contained in:
parent
7f83de07c2
commit
add623473c
@ -48,7 +48,7 @@ Building
|
|||||||
--------
|
--------
|
||||||
|
|
||||||
Build dependencies:
|
Build dependencies:
|
||||||
- DistUtilsExtra (python-distutils-extra)
|
- DistUtilsExtra
|
||||||
|
|
||||||
Dependencies:
|
Dependencies:
|
||||||
- Gtk3
|
- Gtk3
|
||||||
@ -67,5 +67,8 @@ Run:
|
|||||||
git clone https://github.com/SoongNoonien/mpdevil.git
|
git clone https://github.com/SoongNoonien/mpdevil.git
|
||||||
cd mpdevil
|
cd mpdevil
|
||||||
sudo python3 setup.py install
|
sudo python3 setup.py install
|
||||||
|
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
|
||||||
|
sudo gtk-update-icon-cache
|
||||||
|
sudo update-desktop-database
|
||||||
```
|
```
|
||||||
|
|
||||||
|
14
setup.py
14
setup.py
@ -1,18 +1,7 @@
|
|||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# This file is based on https://github.com/kassoulet/soundconverter
|
|
||||||
import os
|
|
||||||
import DistUtilsExtra.auto
|
|
||||||
|
|
||||||
class Install(DistUtilsExtra.auto.install_auto):
|
import DistUtilsExtra.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)
|
|
||||||
|
|
||||||
DistUtilsExtra.auto.setup(
|
DistUtilsExtra.auto.setup(
|
||||||
name='mpdevil',
|
name='mpdevil',
|
||||||
@ -26,6 +15,5 @@ DistUtilsExtra.auto.setup(
|
|||||||
('share/icons/hicolor/48x48/apps/', ['data/mpdevil.png']),
|
('share/icons/hicolor/48x48/apps/', ['data/mpdevil.png']),
|
||||||
('share/icons/hicolor/scalable/apps/', ['data/mpdevil.svg'])
|
('share/icons/hicolor/scalable/apps/', ['data/mpdevil.svg'])
|
||||||
],
|
],
|
||||||
cmdclass={'install': Install}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user