#!/usr/bin/env python
# -*- coding: UTF-8 -*-

from distutils.core import setup
from glob import glob

data_files = [('share/icons/hicolor/scalable/apps',['images/lybniz.svg']),('share/man/man1',['lybniz.1']),('share/applications',['lybniz.desktop']),('share/pixmaps',['images/lybniz.png']),('share/gnome/help/lybniz/C',['doc/lybniz.xml']),('share/gnome/help/lybniz/C/figures',['doc/figures/lybniz_colour_graph_small.png'])]

directories = glob('locale/*/*/')
for directory in directories:
    files = glob(directory+'*')
    data_files.append(('share/'+directory, files))

setup(
	name = 'lybniz',
	version = '3.0.4',
	description = 'Graph Plotter',
	author = 'Thomas Führinger, Sam Tygier',
	author_email = 'ThomasFuhringer@Yahoo.com, samtygier@yahoo.co.uk',
	contact = 'Thomas Führinger',
	contact_email = 'ThomasFuhringer@Yahoo.com',
	url = 'github.com/thomasfuhringer/lybniz',
	scripts = ['lybniz'],
	data_files = data_files,
	license = 'BSD',
	)


@@ -94,16 +94,80 @@
 ort glob
+%0Aimport os%0Aimport shutil%0A%0Ashutil.copyfile('lybniz.py', 'lybniz')
 %0A%0Adata_f
@@ -1010,8 +1010,28 @@
 D',%0A%09)%0A%0A
+os.remove(%22lybniz%22)%0A

install lybniz.py as lybniz