used setuptools auto-generated script
authorWall <wall@gmail.com>
Sat, 28 Feb 2009 21:34:57 +0000 (21:34 +0000)
committerWall <wall@gmail.com>
Sat, 28 Feb 2009 21:34:57 +0000 (21:34 +0000)
setup.cfg [deleted file]
setup.py
src/__init__.py [new file with mode: 0644]
src/findit.py

diff --git a/setup.cfg b/setup.cfg
deleted file mode 100644 (file)
index 49f8847..0000000
--- a/setup.cfg
+++ /dev/null
@@ -1,3 +0,0 @@
-[install]
-install_scripts=/usr/bin
-install_data=/usr/share
index 8a82053..ad40179 100755 (executable)
--- a/setup.py
+++ b/setup.py
@@ -2,19 +2,23 @@
 # -*-coding: utf-8 -*-
 # vim: sw=4 ts=4 expandtab ai
 
-from distutils.core import setup
+from setuptools import setup
 
 setup(name='findit',
-      version='0.1',
-      scripts=['./data/findit'],
+      version='0.1.0',
       license='GPLv3',
+      packages=["findit"],
+      package_dir={'findit': 'src'},
       description='FindIT is a program for find some information on computer',
       data_files = [
-                   ('icons/hicolor/26x26/apps/', ['./data/icons/26x26/findit.png']),
-                   ('icons/hicolor/64x64/apps/', ['./data/icons/64x64/findit.png']),
-                   ('applications/hildon/',      ['./data/findit.desktop']),
-                   ('findit/',                   ['./src/findit.py']),
-                   ('locale/ru/LC_MESSAGES/',    ['./po/ru/findit.mo']),
-                   ('locale/ru_RU/LC_MESSAGES/', ['./po/ru/findit.mo'])
-                   ]
-     )
+                   ('share/icons/hicolor/26x26/apps/', ['./data/icons/26x26/findit.png']),
+                   ('share/icons/hicolor/64x64/apps/', ['./data/icons/64x64/findit.png']),
+                   ('share/applications/hildon/',      ['./data/findit.desktop']),
+                   ('share/locale/ru/LC_MESSAGES/',    ['./po/ru/findit.mo']),
+                   ('share/locale/ru_RU/LC_MESSAGES/', ['./po/ru/findit.mo'])
+                   ],
+    entry_points = {
+        'gui_scripts': ['findIT = findit.findit:main']
+    },
+)
+
diff --git a/src/__init__.py b/src/__init__.py
new file mode 100644 (file)
index 0000000..e69de29
index c04b5d2..c3aba4c 100755 (executable)
@@ -345,8 +345,7 @@ class MainWindow(gtk.Window):
 
 
 ### Main call ##################################################################
-
-if __name__ == '__main__':
+def main():
     gobject.set_application_name( _('FindIT') )
 
     if platform == 'win32':
@@ -356,3 +355,6 @@ if __name__ == '__main__':
 
     app = MainWindow(575, 345, startpath)
     app.run()
+
+if __name__ == '__main__':
+    main()