File: setup.py

package info (click to toggle)
rhythmbox-ampache 0.11.1%2Bsvn43-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 164 kB
  • ctags: 61
  • sloc: python: 657; xml: 20; makefile: 12
file content (28 lines) | stat: -rw-r--r-- 1,093 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env python

from distutils.core import setup
from distutils.sysconfig import PREFIX
from distutils.command.install_data import install_data
import os

class post_install(install_data):
    def run(self):
        # Call parent
        install_data.run(self)

        # Execute commands after copying
        os.system('glib-compile-schemas %s/share/glib-2.0/schemas' % self.install_dir)

setup(name="rhythmbox-ampache",
      cmdclass={"install_data": post_install},
      version="0.11",
      description="A Rhythmbox plugin to stream music from an Ampache server",
      author="Rhythmbox Ampache plugin team",
      author_email="rhythmbox-ampache@googlegroups.com",
      url="http://code.google.com/p/rhythmbox-ampache",
      data_files=[
          ("lib/rhythmbox/plugins/ampache", ["ampache.plugin", "ampache.py", "AmpacheBrowser.py", "AmpacheConfigDialog.py"]),
          ("share/rhythmbox/plugins/ampache", ["ampache-prefs.ui", "ampache.ico", "ampache.png"]),
          ("share/glib-2.0/schemas", ["org.gnome.rhythmbox.plugins.ampache.gschema.xml"]),
          ],
      )