[Pymilter] simple milter design needed
Eric S. Johansson
esj at harvee.org
Thu Apr 15 13:17:50 EDT 2004
Stuart D. Gathman wrote:
> That is a new setup parm added in python2.3. Making setup.py work with
> older pythons will require testing python version (straightforward) and
> then passing keywords options to setup() as a dict (ugly). How needed is
> pre 2.3 compatibility?
it's needed. I'm supporting back to 2.2.1
in:
http://www.python.org/doc/current/dist/setup-script.html#SECTION000360000000000000000
I found:
"""
if you wish to include classifiers in your setup.py file and also wish
to remain backwards-compatible with Python releases prior to 2.2.3, then
you can include the following code fragment in your setup.py before the
setup() call.
# patch distutils if it can't cope with the "classifiers" or
# "download_url" keywords
if sys.version < '2.2.3':
from distutils.dist import DistributionMetadata
DistributionMetadata.classifiers = None
DistributionMetadata.download_url = None
"""
does this help?
---eric
<!DSPAM:FBEF2E501D175776395288584>
More information about the Pymilter
mailing list