[Spambayes-checkins] spambayes setup.py,1.10.2.2,1.10.2.3
Anthony Baxter
anthonybaxter at users.sourceforge.net
Mon Jan 13 21:35:21 EST 2003
Update of /cvsroot/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv32378
Modified Files:
Tag: reorg-branch
setup.py
Log Message:
final bits of setup.py tweaking.
Index: setup.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/setup.py,v
retrieving revision 1.10.2.2
retrieving revision 1.10.2.3
diff -C2 -d -r1.10.2.2 -r1.10.2.3
*** setup.py 13 Jan 2003 06:45:40 -0000 1.10.2.2
--- setup.py 14 Jan 2003 05:35:19 -0000 1.10.2.3
***************
*** 1,13 ****
from distutils.core import setup
! import sys, email
if email.__version__ < '2.4.3':
print "Error: email package version < 2.4.3 found - need newer version"
! print "See INTEGRATION.txt for download information"
sys.exit(0)
setup(
name='spambayes',
scripts=['unheader.py',
'hammie.py',
--- 1,35 ----
+ #!/usr/bin/env python
+
+ import sys
+ if sys.version < '2.2':
+ print "Error: Python version too old. You need at least Python 2.2 to use this package."
+ print "(you're running version %s)"%sys.version
+ sys.exit(0)
+
+ # Install
from distutils.core import setup
! import email
if email.__version__ < '2.4.3':
print "Error: email package version < 2.4.3 found - need newer version"
! print "See INTEGRATION.txt for download information for email package"
sys.exit(0)
+ # patch distutils if it can't cope with the "classifiers" keyword.
+ # this just makes it ignore it.
+ if sys.version < '2.2.3':
+ from distutils.dist import DistributionMetadata
+ DistributionMetadata.classifiers = None
+
+
+ from spambayes import __version__
setup(
name='spambayes',
+ version = __version__,
+ description = "Spam classification system",
+ author = "the spambayes project",
+ author_email = "spambayes at python.org",
+ url = "http://spambayes.sourceforge.net",
scripts=['unheader.py',
'hammie.py',
***************
*** 18,22 ****
'pop3proxy.py',
],
!
! packages = [ 'spambayes', ]
)
--- 40,56 ----
'pop3proxy.py',
],
! packages = [ 'spambayes', ],
! classifiers = [
! 'Development Status :: 4 - Beta',
! 'Environment :: Console',
! 'License :: OSI Approved :: Python Software Foundation License',
! 'Operating System :: POSIX',
! 'Operating System :: MacOS :: MacOS X',
! 'Operating System :: Microsoft :: Windows :: Windows 95/98/2000',
! 'Operating System :: Microsoft :: Windows :: Windows NT/2000',
! 'Programming Language :: Python',
! 'Intended Audience :: End Users/Desktop',
! 'Topic :: Communications :: Email :: Filters',
! 'Topic :: Communications :: Email :: Post-Office :: POP3',
! ]
)
More information about the Spambayes-checkins
mailing list