"Fossies" - the Fresh Open Source Software Archive 
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "setup.py" see the
Fossies "Dox" file reference documentation.
1 #! /usr/bin/env python
2
3 import sys
4
5 def check_python_version():
6 """Abort if we are running on python < v2.0"""
7 too_old_error = """This program requires python v2.0 or greater.
8 Your version of python is: %s""" % sys.version
9 try:
10 version = sys.version_info # we might not even have this function! :)
11 if (version[0] < 2):
12 print too_old_error
13 sys.exit(1)
14 except AttributeError:
15 print too_old_error
16 sys.exit(1)
17
18 # define & run this early - 'distutils.core' requires Python >= 2.0
19 check_python_version()
20 from distutils.core import setup
21
22 setup(name="archivemail",
23 version="0.9.0",
24 description="archive and compress old email",
25 license="GNU GPL",
26 url="http://archivemail.sourceforge.net/",
27 author="Paul Rodger",
28 author_email="paul@paulrodger.com",
29 maintainer="Nikolaus Schulz, Peter Poeml",
30 maintainer_email="nikosch@users.sourceforge.net, poeml@users.sourceforge.net",
31 scripts=["archivemail"],
32 data_files=[("share/man/man1", ["archivemail.1"])],
33 )