setup.py

changeset 24
02f21810d43d
parent 21
71e18d3b1685
child 28
1088bb11189f
equal deleted inserted replaced
23:4e1d30c61d0e 24:02f21810d43d
1 #! /usr/bin/env python 1 #! /usr/bin/env python
2 2
3 """\ 3 """\
4 emin is a script used to make static HTML-based galleries of 4 emin makes static Web pages for presenting lots of imagey things: photos, PDFs,
5 photos, PDFs, diagrams... anything, really. It's primarily 5 graphs with thumbnails as well as links to the image/doc file proper.
6 intended for making Web photo galleries for the sorts of
7 people who don't want to install some PHP monstrosity just
8 to put their photos online. On the assumption that most people
9 will want to tweak their gallery's appearance, the output is
10 fully customisable using the Cheetah templating engine.
11 6
12 Supported image formats are JPEG, PNG, GIF, TIFF, PDF and EPS, 7 It's primarily intended for making Web photo galleries for the sorts of people
13 with the latter two being converted to PNG for Web display. 8 who don't want to install some PHP monstrosity just to put their photos
14 Image resizing, renaming and thumbnailing is supported, as is 9 online. On the assumption that most people will want to tweak their gallery's
15 building a zip file to download the whole set. Large image sets 10 appearance, the output is fully customisable using the Cheetah templating
16 can be split over several pages. 11 engine.
12
13 Supported image formats are JPEG, PNG, GIF, TIFF, PDF and EPS, with the latter
14 two being converted to PNG for Web display. Image resizing, renaming and
15 thumbnailing is supported, as is building a zip file to download the whole
16 set. Large image sets can be split over several pages.
17 """ 17 """
18 18
19 ## Get setuptools stuff 19 ## Get setuptools stuff
20 from distutils.core import setup 20 from distutils.core import setup
21 21
22 22
23 ## Try to import Cheetah templating
24 try:
25 from Cheetah.Template import Template
26 except Exception, e:
27 logging.error("Couldn't import required Cheetah package: please install Cheetah first")
28 exit(1)
29
30 ## Try to import Python Imaging Library
31 try:
32 import PIL.Image
33 except Exception, e:
34 logging.error("Couldn't import required Python Imaging Library package: please install PIL first")
35 exit(1)
36
37
23 ## Setup definition 38 ## Setup definition
24 setup(name = 'emin', 39 setup(name = 'emin',
25 version = "0.3.3", 40 version = "0.3.4",
26 scripts = ['emin'], 41 scripts = ['emin'],
27 requires = ["Cheetah", "PIL"], 42 requires = ["Cheetah", "PIL"],
28 author = 'Andy Buckley', 43 author = 'Andy Buckley',
29 author_email = 'andy@insectnation.org', 44 author_email = 'andy@insectnation.org',
30 #url = 'http://www.insectnation.org/projects/emin/', 45 #url = 'http://www.insectnation.org/projects/emin/',

mercurial