#!/usr/bin/python
# -*- coding: utf-8 -*-

from distutils.core import setup
import sys

class my_install():
	def run(self):
		# install.run(self)
		# Custom stuff here
		# distutils.command.install actually has some nice helper methods
		# and interfaces. I strongly suggest reading the docstrings.

		# print "und nu komm ICH dran!"
		import gplayer.config.createconfig

setup(
    name = "gplayer",
    version = "0.1.1",
    packages = ['gplayer', 'gplayer.ui', 'gplayer.config', 'gplayer.data', 'gplayer.errorhandling', 'gplayer.metadaten', 'gplayer.playlist'],
    scripts = ["bin/gplayer", "bin/gplayerui"],

    # Project uses reStructuredText, so ensure that the docutils get
    # installed or upgraded on the target machine
    install_requires = [
			# 'gtk==2.24',
			# 'pygtk==2.24', 
			# 'gst>=0-10', 
			# 'pygst>=0.10', 
			'pygame>=1.9',
			'mutagen>=1.21'
		],

    package_data = {
        # If any package contains *.txt or *.rst files, include them:
        '': ['*.txt', '*.rst'],
        # And include any *.glade files found in the 'gplayer' package, too:
        'gplayer': ['*.glade'],
        # And include any *.tar.gz from the package 'gplayer.config, too:
        'gplayer.config': ['*.gz'],
        'gplayer.data': ['*'],

    },

    # metadata for upload to PyPI
    author = "Thomas Korell",
    author_email = "claw.strophob@gmx.de",
    description = "Lightweight Music Player",
    license = "GNU General Public License (v2 or later)",
    keywords = "FLAC MP3 Player Coverart",
    url = "http://sourceforge.net/projects/gplayer-audio",   # project home page, if any

    # could also include long_description, download_url, classifiers, etc.
	# cmdclass={'setconfig': my_install},

)

if sys.argv[1] == "install" :
	print "installiere config"
	my_install().run()

