2002-04-26 03:04:02 +00:00
|
|
|
#! /usr/bin/env python
|
2002-04-11 10:23:16 +00:00
|
|
|
|
|
|
|
import sys
|
|
|
|
|
2002-04-11 10:31:07 +00:00
|
|
|
def check_python_version():
|
|
|
|
"""Abort if we are running on python < v2.0"""
|
2002-04-26 03:04:02 +00:00
|
|
|
too_old_error = """This program requires python v2.0 or greater.
|
|
|
|
Your version of python is: %s""" % sys.version
|
2002-04-11 10:31:07 +00:00
|
|
|
try:
|
|
|
|
version = sys.version_info # we might not even have this function! :)
|
|
|
|
if (version[0] < 2):
|
|
|
|
print too_old_error
|
|
|
|
sys.exit(1)
|
|
|
|
except AttributeError:
|
|
|
|
print too_old_error
|
|
|
|
sys.exit(1)
|
|
|
|
|
2002-04-17 06:26:31 +00:00
|
|
|
check_python_version() # define & run this early - 'distutils.core' is new
|
2002-04-11 10:31:07 +00:00
|
|
|
from distutils.core import setup
|
2002-04-11 10:23:16 +00:00
|
|
|
|
|
|
|
setup(name="archivemail",
|
2006-06-27 04:44:28 +00:00
|
|
|
version="0.6.2",
|
2002-04-11 10:47:42 +00:00
|
|
|
description="archive and compress old email",
|
|
|
|
license="GNU GPL",
|
|
|
|
url="http://archivemail.sourceforge.net/",
|
2002-04-11 10:23:16 +00:00
|
|
|
author="Paul Rodger",
|
|
|
|
author_email="paul@paulrodger.com",
|
2006-10-12 23:02:03 +00:00
|
|
|
maintainer="Archivemail maintainer team",
|
|
|
|
maintainer_email="archivemail-devel@lists.sourceforge.net",
|
2006-06-27 05:25:10 +00:00
|
|
|
scripts=["archivemail.py"],
|
2002-04-12 14:57:05 +00:00
|
|
|
data_files=[("man/man1", ["archivemail.1"])],
|
2002-04-11 10:23:16 +00:00
|
|
|
)
|