From df5b82acd424eeb5ac68d0b1e1d5cbf018051311 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 14 Jul 2013 22:15:00 +0400 Subject: [PATCH] more tweaking setup.py... Signed-off-by: Alex A. Naanou --- gid.py | 11 ++++++++--- setup.py | 29 +++++++++++++++++------------ 2 files changed, 25 insertions(+), 15 deletions(-) diff --git a/gid.py b/gid.py index b864f054..c1de8189 100755 --- a/gid.py +++ b/gid.py @@ -1,7 +1,7 @@ #======================================================================= __version__ = '''0.0.01''' -__sub_version__ = '''20130325203750''' +__sub_version__ = '''20130714221105''' __copyright__ = '''(c) Alex A. Naanou 2011''' @@ -98,8 +98,8 @@ def image_gid(path, date=None, -#----------------------------------------------------------------------- -if __name__ == '__main__': +#--------------------------------------------------handle_commandline--- +def handle_commandline(): from optparse import OptionParser parser = OptionParser() @@ -142,6 +142,11 @@ if __name__ == '__main__': print image_gid(IN_PATH) +#----------------------------------------------------------------------- +if __name__ == '__main__': + handle_commandline() + + #======================================================================= # vim:set ts=4 sw=4 nowrap : diff --git a/setup.py b/setup.py index d10dd20b..7263ccc8 100755 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ #======================================================================= __version__ = '''0.1.12''' -__sub_version__ = '''20130714220348''' +__sub_version__ = '''20130714221612''' __copyright__ = '''(c) Alex A. Naanou 2003''' @@ -68,22 +68,27 @@ setup( entry_points = { 'console_scripts': [ - 'buildcache = buildcache:handle_commandline' + 'buildcache = buildcache:handle_commandline', + 'gid = gid:handle_commandline', ], }, # py2exe stuff... options = {"py2exe": { - 'compressed': 1, -## 'optimize': 2, - 'bundle_files': 2, -## 'packages': 'encodings', - 'excludes': [] if INCLUDE_GPL_LIBS_IN_EXE else [ - # NOTE: we do not want to distribute any incompatible-licensed code... - 'pyexiv2', - ] - }}, - console = ['buildcache.py'], + 'compressed': 1, +## 'optimize': 2, + 'bundle_files': 2, +## 'packages': 'encodings', + 'excludes': [] if INCLUDE_GPL_LIBS_IN_EXE else [ + # NOTE: we do not want to distribute any incompatible-licensed code... + 'pyexiv2', + ] + }}, + + console = [ + 'buildcache.py', + 'gid.py', + ], )