[Syncropated-commits] r146 - /
zimmerle at garage.maemo.org
zimmerle at garage.maemo.org
Sat Jan 27 19:42:18 EET 2007
Author: zimmerle
Date: 2007-01-27 19:42:17 +0200 (Sat, 27 Jan 2007)
New Revision: 146
Removed:
Makefile
TODO
setup.py
Log:
Setup new version environment
Deleted: Makefile
===================================================================
--- Makefile 2007-01-27 17:30:59 UTC (rev 145)
+++ Makefile 2007-01-27 17:42:17 UTC (rev 146)
@@ -1,9 +0,0 @@
-all:
- python2.4 setup.py build
-
-clean:
- python2.4 setup.py clean --all
-
-install:
- python2.4 setup.py install
-
Deleted: TODO
===================================================================
--- TODO 2007-01-27 17:30:59 UTC (rev 145)
+++ TODO 2007-01-27 17:42:17 UTC (rev 146)
@@ -1,29 +0,0 @@
-
-[done] Update playlists in remote treeview more correctly
-[done] Check disk space before copying
-[done] Use threads for the syncronization to not block the GUI (the N770 is slow at times)
-[done] Fix the size reporting to be more correct
-[done] Make it possible to only copy some playlists
-[done] Get application icon
-[done] Select device dialog (show if more devices are detected)
-[done] Make menu and add about box
-[done] Remove playlists if they exist and the user wants to remove (leave songs that exists in other playlists on the device)
-[done] Make progress dialog
-[done] Make the free space bar widget insensitive when insensitive
-[done] Make it transfer pictures as well ($HOME/PicasaDocuments/My Pictures)
-
-- Make device detection work on Windows
-- Make it read iTunes playlists
-- Make device detection work on MacOS X
-- Make a native Mac OS X frontend
-- Make a native Windows frontend
-- Make it read smart playlists
-- Make it read Banshee playlists
-- Make a version of the logo that follows MacOS X guidelines
-- Scale images (handle size, and add configuration support)
-- Add video support
-- Add internationalization (translation support)
-- Handle unplugging of the device gracefully
-
-
-mkfs.vfat -F 32 /dev/sdb1
Deleted: setup.py
===================================================================
--- setup.py 2007-01-27 17:30:59 UTC (rev 145)
+++ setup.py 2007-01-27 17:42:17 UTC (rev 146)
@@ -1,129 +0,0 @@
-#!/usr/bin/env python
-
-import os
-import re
-from distutils.sysconfig import get_config_var
-from distutils.core import setup
-from distutils.command.install import install
-import sys
-import glob
-if sys.platform == "win32":
- import py2exe
-
-
-VERSION = '0.3'
-
-
-class my_install(install):
- def run(self):
- preprocess("src/Syncropated.py.in")
- install.run(self)
- if sys.platform.startswith("linux"):
- os.system('touch ' + os.path.join(get_config_var('prefix'), "share/icons/hicolor/"))
- os.system('touch ' + os.path.join(get_config_var('prefix'), "share/icons/gnome/"))
- os.system('touch ' + os.path.join(get_config_var('prefix'), "share/icons/Tango/"))
-
-def preprocess(path):
- if os.path.exists(path):
- src = open(path, "r")
- target = open(path.strip(".in"), "w")
-
- lines = src.readlines()[:]
-
- for line in lines:
- line = re.sub("@PREFIX@", get_config_var('prefix'), line)
- line = re.sub("%%VERSION%%", VERSION, line)
- target.write(line)
-
- target.close()
- src.close()
-
-
-def walk_through_data_dir(dir):
- data = []
- data.append((dir,glob.glob(dir + "\*.*")))
- for f in os.listdir(dir):
- path = os.path.join(dir, f)
- if os.path.isdir(path):
- for i in walk_through_data_dir(path):
- data.append(i);
- return data;
-
-
-def main():
-
-
- data_files = []
- if sys.platform.startswith("linux"):
- data_files = [
- ('share/applications', ['data/syncropated.desktop']),
- ('share/icons/hicolor/scalable/apps', ['data/icons/scalable/syncropated.svg']),
- ('share/icons/hicolor/16x16/apps', ['data/icons/16x16/syncropated.png']),
- ('share/icons/hicolor/22x22/apps', ['data/icons/22x22/syncropated.png']),
- ('share/icons/hicolor/24x24/apps', ['data/icons/24x24/syncropated.png']),
- ('share/icons/hicolor/32x32/apps', ['data/icons/32x32/syncropated.png']),
- ('share/icons/gnome/16x16/mimetypes', ['data/icons/gnome/16x16/playlist.png']),
- ('share/icons/gnome/22x22/mimetypes', ['data/icons/gnome/22x22/playlist.png']),
- ('share/icons/gnome/24x24/mimetypes', ['data/icons/gnome/24x24/playlist.png']),
- ('share/icons/Tango/16x16/mimetypes', ['data/icons/Tango/16x16/playlist.png']),
- ('share/syncropated/data/ui', ['data/glade/syncropated-ui.glade']),
- ('share/icons/hicolor/scalable/apps', ['data/icons/scalable/device-nokia-770.svg']),
- ('share/syncropated/data', ['data/splash.png']),
- ]
- else:
- data_files = walk_through_data_dir("data")
-
-
- setup(name='syncropated',
- version=VERSION,
- 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.',
- author='Kenneth Rohde Christiansen',
- author_email='kenneth.christiansen at gmail.com',
- url='http://garage.maemo.org/syncropated',
- scripts=['src/syncropated'],
- package_dir={'syncropated': 'src', 'syncropated.data': 'data'},
- packages=['syncropated', 'syncropated.data'],
- data_files=data_files,
- 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.isir("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:
- preprocess("build/win32/build.iss.in")
- print "Starting inno setup compiler (File: build/win32/build.iss)"
- os.system("iscc build/win32/build.iss")
-
-
More information about the Syncropated-commits
mailing list