setup.py

changeset 24
02f21810d43d
parent 21
71e18d3b1685
child 28
1088bb11189f
     1.1 --- a/setup.py	Thu Apr 04 16:53:49 2013 +0200
     1.2 +++ b/setup.py	Wed Apr 24 10:37:45 2013 +0200
     1.3 @@ -1,28 +1,43 @@
     1.4  #! /usr/bin/env python
     1.5  
     1.6  """\
     1.7 -emin is a script used to make static HTML-based galleries of
     1.8 -photos, PDFs, diagrams... anything, really. It's primarily
     1.9 -intended for making Web photo galleries for the sorts of
    1.10 -people who don't want to install some PHP monstrosity just
    1.11 -to put their photos online. On the assumption that most people
    1.12 -will want to tweak their gallery's appearance, the output is
    1.13 -fully customisable using the Cheetah templating engine.
    1.14 +emin makes static Web pages for presenting lots of imagey things: photos, PDFs,
    1.15 +graphs with thumbnails as well as links to the image/doc file proper.
    1.16  
    1.17 -Supported image formats are JPEG, PNG, GIF, TIFF, PDF and EPS,
    1.18 -with the latter two being converted to PNG for Web display.
    1.19 -Image resizing, renaming and thumbnailing is supported, as is
    1.20 -building a zip file to download the whole set. Large image sets
    1.21 -can be split over several pages.
    1.22 +It's primarily intended for making Web photo galleries for the sorts of people
    1.23 +who don't want to install some PHP monstrosity just to put their photos
    1.24 +online. On the assumption that most people will want to tweak their gallery's
    1.25 +appearance, the output is fully customisable using the Cheetah templating
    1.26 +engine.
    1.27 +
    1.28 +Supported image formats are JPEG, PNG, GIF, TIFF, PDF and EPS, with the latter
    1.29 +two being converted to PNG for Web display.  Image resizing, renaming and
    1.30 +thumbnailing is supported, as is building a zip file to download the whole
    1.31 +set. Large image sets can be split over several pages.
    1.32  """
    1.33  
    1.34  ## Get setuptools stuff
    1.35  from distutils.core import setup
    1.36  
    1.37  
    1.38 +## Try to import Cheetah templating
    1.39 +try:
    1.40 +    from Cheetah.Template import Template
    1.41 +except Exception, e:
    1.42 +    logging.error("Couldn't import required Cheetah package: please install Cheetah first")
    1.43 +    exit(1)
    1.44 +
    1.45 +## Try to import Python Imaging Library
    1.46 +try:
    1.47 +    import PIL.Image
    1.48 +except Exception, e:
    1.49 +    logging.error("Couldn't import required Python Imaging Library package: please install PIL first")
    1.50 +    exit(1)
    1.51 +
    1.52 +
    1.53  ## Setup definition
    1.54  setup(name = 'emin',
    1.55 -      version = "0.3.3",
    1.56 +      version = "0.3.4",
    1.57        scripts = ['emin'],
    1.58        requires = ["Cheetah", "PIL"],
    1.59        author = 'Andy Buckley',

mercurial