from distutils.core import setup import sys, 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')) if sys.platform == 'win32': import py2exe LOCALE_DIR = 'locale' manifest = """ """ setup( name = 'usbdumper', version = '3.7.0', packages = ['liveusb'], scripts = ['usbdumper'], license = 'GNU General Public License (GPL)', url = 'http://git.mandriva.com/?p=projects/mandriva-seed.git', description = 'This tool dumps hybrid ISO on USB stick', long_description = 'usbdumper is a cross-platform tool for easily dump hybrid ISO on USB flash drives', platforms = ['Windows'], maintainer = 'Yves Brungard', maintainer_email = 'yves.brungard_mageia@gadz.org', windows = [ { "script" : "usbdumper", "other_resources": [(24,1,manifest)], #"icon_resources" : [(0, "data/mdv.ico")], } ], options={ "py2exe" : { #"includes" : ["sip", "PyQt4._qt"], "includes" : ["sip"], 'bundle_files': 1, "dll_excludes": ["mswsock.dll", "MSWSOCK.dll"], } }, zipfile=None, data_files = [ "LICENSE.txt", ] + [(os.path.join(LOCALE_DIR, locale), [os.path.join('po', 'locale', locale, 'liveusb-creator.mo')]) for locale in locales] ) else: setup( name = 'usbdumper', version = '3.7.0', packages = ['liveusb'], scripts = ['usbdumper'], license = 'GNU General Public License (GPL)', url = 'http://svnweb.mageia.org/soft/usbdumper', description = 'This tool dumps hybrid ISO on USB stick', long_description = 'usbdumper is a cross-platform tool for easily dump hybrid ISO on USB flash drives', platforms = ['Linux'], maintainer = 'Yves Brungard', maintainer_email = 'yves.brungard_mageia@gadz.org', data_files = [("/usr/share/applications",["data/liveusb-creator.desktop"]), ('/usr/share/pixmaps',["data/fedorausb.png"]), ] + [(os.path.join(LOCALE_DIR, locale), [os.path.join('po', 'locale', locale, 'liveusb-creator.mo')]) for locale in locales] )