[Syncropated-commits] r148 - trunk
zimmerle at garage.maemo.org
zimmerle at garage.maemo.org
Sat Jan 27 23:06:35 EET 2007
Author: zimmerle
Date: 2007-01-27 23:06:34 +0200 (Sat, 27 Jan 2007)
New Revision: 148
Added:
trunk/setup.py
Log:
Initial setup for 0.2 release
Added: trunk/setup.py
===================================================================
--- trunk/setup.py 2007-01-27 17:43:30 UTC (rev 147)
+++ trunk/setup.py 2007-01-27 21:06:34 UTC (rev 148)
@@ -0,0 +1,100 @@
+#!/usr/bin/env python
+
+# setup.py
+#
+# Copyright (c) 2005 INdT (Instituto Nokia de Technologia)
+#
+# Author: Felipe Zimmerle <felipe at zimmerle.org>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2 of the
+# License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+# USA
+
+import sys, os
+from distutils.core import setup
+from distutils.command.install import install
+from distutils.sysconfig import get_config_var
+if sys.platform == "win32":
+ import py2exe
+
+
+VERSION = '0.2'
+
+
+class my_install(install):
+
+ def run(self):
+ install.run(self)
+
+
+def main():
+ print "Config var: " + str(get_config_var('prefix'))
+ setup(
+ name='Syncropated!',
+ description='An application for syncing Music Player generated playlists for' +
+ 'Mass Storage Devices such as the N770, MCC, and SD cards',
+ long_description='Syncropated! is an application for syncing music player ' +
+ '(Rhythmbox, Banshee, Amarok, iTunes, Window Media Player, ...) generated ' +
+ 'playlists, as well as photo albums (F-spot, Picasa) with mass storage ' +
+ 'devices such as the Nokia N770, MMC and SD cards.',
+ version=VERSION,
+ package_dir={'syncropated': 'src', 'syncropated.data': 'data'},
+ packages=['syncropated', 'syncropated.data'],
+ scripts=['src/syncropated'],
+ author='Felipe Zimmerle and Kenneth Rohde Christiansen',
+ author_email='felipe at zimmerle.org',
+ url='http://garage.maemo.org/syncropated',
+ cmdclass = { 'install' : my_install },
+ options = {
+ "py2exe": {
+ "includes": ["cairo", "pango", "pangocairo", "atk",
+ "gobject", "gtk","gtk.glade"],
+ "dll_excludes": ["iconv.dll", "intl.dll",
+ "libatk-1.0-0.dll", "libgdk_pixbuf-2.0-0.dll",
+ "libgdk-win32-2.0-0.dll", "libglib-2.0-0.dll",
+ "libgmodule-2.0-0.dll", "libgobject-2.0-0.dll",
+ "libgthread-2.0-0.dll", "libgtk-win32-2.0-0.dll",
+ "libpango-1.0-0.dll", "libpangowin32-1.0-0.dll",
+ "libxml2", "libglade-2.0-0", "zlib1"]
+ }
+ },
+ windows = [{
+ 'script': 'src\syncropated',
+ 'icon_resources': [(1, "data\icons\syncropated.ico")],
+ }],
+ )
+
+
+
+if __name__ == '__main__':
+
+ make_installer = 0
+ if sys.platform == "win32" and "-buildinstaller" in sys.argv and "py2exe" in sys.argv:
+ sys.argv.remove("-buildinstaller")
+ if os.path.isdir("c:\GTK"):
+ make_installer = 1
+ else:
+ print "WARNING: Sorry for the HARD CODED path, but to make the installer you"
+ print "WARNING: must need the GTK Library installed at c:\GTK.\n"
+ print "WARNING: If you don't have it, you can try to find it at:"
+ print "WARNING: http://sourceforge.net/projects/gtk-win/"
+
+ main()
+
+ if make_installer:
+ print "Starting inno setup compiler (File: src/win32/build.iss)"
+ os.system("iscc src/win32/build.iss")
+
+
+
Property changes on: trunk/setup.py
___________________________________________________________________
Name: svn:executable
+ *
More information about the Syncropated-commits
mailing list