Increase thumbnail size
[joel/kofoto.git] / setup.py
1 #! /usr/bin/env python
2
3 from distutils.core import setup
4 import glob
5 import os
6 import shutil
7
8 package_dirs = {
9     "kofoto": "src/packages/kofoto",
10     }
11 packages = [
12     "kofoto",
13     "kofoto.commandline",
14     "kofoto.gkofoto",
15     "kofoto.output",
16     ]
17 data_files = [
18     ("share/gkofoto/glade", ["src/gkofoto/glade/gkofoto.glade"]),
19     ("share/gkofoto/icons", glob.glob("src/gkofoto/icons/*.png")),
20     ]
21 versionDict = {}
22 execfile("src/packages/kofoto/version.py", versionDict)
23 common_setup_options = {
24     "name": "kofoto",
25     "version": versionDict["version"],
26     "description": "A tool for organizing and viewing images.",
27     "package_dir": package_dirs,
28     "packages": packages,
29     "data_files": data_files,
30     "author": "Joel Rosdahl and Ulrik Svensson",
31     "author_email": "kofoto@rosdahl.net",
32     "maintainer": "Joel Rosdahl and Ulrik Svensson",
33     "maintainer_email": "kofoto@rosdahl.net",
34     "url": "http://kofoto.rosdahl.net",
35     "license": "BSD",
36     "group": "Applications/Graphics",
37     "requires": "python >= 2.4, gtk+ >= 2.4, glade >= 2.6, pygtk, sqlite >= 2.8, pysqlite, PIL",
38 }
39
40 def run(**setup_options):
41     options = common_setup_options.copy()
42     options.update(setup_options)
43     setup(**options)
44
45 def unix_install():
46     shutil.copy("src/gkofoto/start-installed.py", "gkofoto")
47     setup_options = {
48         "scripts": [
49             "src/cmdline/kofoto",
50             "gkofoto",
51             ]
52         }
53     run(**setup_options)
54     os.unlink("gkofoto")
55
56 if __name__ == "__main__":
57     unix_install()