1
0
Fork 0
mirror of https://git.code.sf.net/p/archivemail/code synced 2025-02-19 05:50:28 +00:00
archivemail/setup.py
Paul Rodger bc41b68389 Fixed a bug where the long --suffix option was not working (although the
short option, '-s' was).

Added time-based format directives to the --suffix option, so that you
can do things like specify --suffix='%B%Y' to create archives named
after the current month and year.

Added some more tests to test_archivemail.py
2002-04-27 06:08:45 +00:00

30 lines
929 B
Python
Executable file

#! /usr/bin/env python
import sys
def check_python_version():
"""Abort if we are running on python < v2.0"""
too_old_error = """This program requires python v2.0 or greater.
Your version of python is: %s""" % sys.version
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)
check_python_version() # define & run this early - 'distutils.core' is new
from distutils.core import setup
setup(name="archivemail",
version="0.4.4",
description="archive and compress old email",
license="GNU GPL",
url="http://archivemail.sourceforge.net/",
author="Paul Rodger",
author_email="paul@paulrodger.com",
scripts=["archivemail"],
data_files=[("man/man1", ["archivemail.1"])],
)