aboutsummaryrefslogtreecommitdiffstats
path: root/setup.py
blob: d7e02256ab8286d88862df76f6a08b9ca6fdde5e (plain)
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
29
30
31
32
33
from distutils.core import setup
import os

LOCALE_DIR= '/usr/share/locale'

locales = []
if os.path.exists('po/locale'):
    for lang in os.listdir('po/locale'):
        locales.append(os.path.join(lang, 'LC_MESSAGES'))

data_files = [("share/applications/", ["share/applications/mageiasync.desktop"]),
              ("share/icons/hicolor/scalable/apps", ["share/icons/mageiasync.svg"])
              ] + [(os.path.join(LOCALE_DIR, locale),
                            [os.path.join('po', 'locale', locale, 'mageiasync.mo')])
                            for locale in locales]

setup(
        name = 'mageiasync',
        version = '0.1',
        packages = ['mageiasync'],
        scripts = ['mageiasync'],
        license = 'GNU General Public License v3 (GPLv3)',
        url = 'https://github.com/papoteur-mga/mageiaSync',
        description = 'This tool downloads ISO images from mirror or Mageia testing server.',
        long_description = 'This tool uses rsync with a GUI',
        platforms = ['Linux'],
        author = 'Papoteur',
        author_email = 'papoteur@mageialinux-online.org',
        maintainer = 'david_david',
        maintainer_email = 'david.david@mageialinux-online.org',
        data_files = data_files,
        )