setup.py | 94 ++++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 54 insertions(+), 40 deletions(-)
New commits: commit 18e5c7f60e763fe9e57fc085c728518157059942 Author: Kushal Das <kdas@d80.(none)> Date: Wed Aug 13 20:17:16 2008 +0530
setup.py fixed, now it will create different packages for different platform
diff --git a/setup.py b/setup.py index 3ab1943..6250a13 100644 --- a/setup.py +++ b/setup.py @@ -1,43 +1,57 @@ from distutils.core import setup -try: +import sys +if sys.platform == 'win32': import py2exe -except ImportError: - pass
-setup( - name = 'liveusb-creator', - version = '2.7', - packages = ['liveusb', 'liveusb/urlgrabber'], - scripts = ['liveusb-creator'], - license = 'GNU General Public License (GPL)', - url = 'https://fedorahosted.org/liveusb-creator', - description = 'This tool installs a LiveCD ISO on to a USB stick', - long_description = 'The liveusb-creator is a cross-platform tool for easily installing live operating systems on to USB flash drives', - platforms = ['any'], - maintainer = 'Luke Macken', - maintainer_email = 'lmacken@redhat.com', - windows = [ - { - "script" : "liveusb-creator", - "icon_resources" : [(0, "data/fedora.ico")], - } - ], - options={ - "py2exe" : { - "includes" : ["sip", "PyQt4._qt"], - 'bundle_files': 1, - } - }, - zipfile=None, - data_files = [ - "LICENSE.txt", - ("tools", [ - "tools/dd.exe", - "tools/syslinux.exe", - "tools/7z.exe", - "tools/7z.dll", - "tools/7zCon.sfx", - "tools/7-Zip-License.txt", - ]) - ] -) + setup( + name = 'liveusb-creator', + version = '2.7', + packages = ['liveusb', 'liveusb/urlgrabber'], + scripts = ['liveusb-creator'], + license = 'GNU General Public License (GPL)', + url = 'https://fedorahosted.org/liveusb-creator', + description = 'This tool installs a LiveCD ISO on to a USB stick', + long_description = 'The liveusb-creator is a cross-platform tool for easily installing live operating systems on to USB flash drives', + platforms = ['Windows'], + maintainer = 'Luke Macken', + maintainer_email = 'lmacken@redhat.com', + windows = [ + { + "script" : "liveusb-creator", + "icon_resources" : [(0, "data/fedora.ico")], + } + ], + options={ + "py2exe" : { + "includes" : ["sip", "PyQt4._qt"], + 'bundle_files': 1, + } + }, + zipfile=None, + data_files = [ + "LICENSE.txt", + ("tools", [ + "tools/dd.exe", + "tools/syslinux.exe", + "tools/7z.exe", + "tools/7z.dll", + "tools/7zCon.sfx", + "tools/7-Zip-License.txt", + ]) + ] + ) +else: + setup( + name = 'liveusb-creator', + version = '2.7', + packages = ['liveusb', 'liveusb/urlgrabber'], + scripts = ['liveusb-creator'], + license = 'GNU General Public License (GPL)', + url = 'https://fedorahosted.org/liveusb-creator', + description = 'This tool installs a LiveCD ISO on to a USB stick', + long_description = 'The liveusb-creator is a cross-platform tool for easily installing live operating systems on to USB flash drives', + platforms = ['Linux'], + maintainer = 'Luke Macken', + maintainer_email = 'lmacken@redhat.com', + ) +
liveusb-creator@lists.stg.fedorahosted.org