[Zodb-checkins] CVS: ZODB3 - setup.py:1.17

Barry Warsaw barry@wooz.org
Fri, 23 Aug 2002 13:49:13 -0400


Update of /cvs-repository/ZODB3
In directory cvs.zope.org:/tmp/cvs-serv5112

Modified Files:
	setup.py 
Log Message:
Added a copyright notice

Use our fullname for the maintainer field.

Factor out ext_modules so we can conditionally add the bsddb _helper
module if we're using Python 2.2.


=== ZODB3/setup.py 1.16 => 1.17 ===
--- ZODB3/setup.py:1.16	Mon Aug 12 18:44:31 2002
+++ ZODB3/setup.py	Fri Aug 23 13:49:13 2002
@@ -1,6 +1,20 @@
+##############################################################################
+#
+# Copyright (c) 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+
+import sys
 from distutils.core import setup
 from distutils.extension import Extension
-import sys
 
 ExtensionClass = Extension(name = 'ExtensionClass',
                            sources = ['ExtensionClass/src/ExtensionClass.c'])
@@ -83,6 +97,9 @@
                 define_macros = [('EXCLUDE_INTSET_SUPPORT', None)],
                 )
 
+bsddbhelper = Extension(name = 'bsddb3Storage._helper',
+                        sources = ['bsddb3Storage/bsddb3Storage/_helper.c'])
+
 packages = ['BTrees', 'BTrees.tests',
             'ZODB', 'ZODB.tests',
             "Persistence",
@@ -136,21 +153,25 @@
 else:
     packages += ["ZEO", "ZEO.zrpc", "ZEO.tests"]
 
+ext_modules = [ExtensionClass, Acquisition, ComputedAttribute,
+               MethodObject, Missing, MultiMapping, Sync,
+               ThreadLock, Record, cPersistence, cPickleCache,
+               TimeStamp, coptimizations, winlock, oob, oib,
+               iib, iob, fsb,
+               ]
+
+# Don't build the helper unless using at least Python 2.2
+if sys.hexversion >= 0x020200F0:
+    ext_modules.append(bsddbhelper)
+
 setup(name="ZODB3",
       version="3.1b1",
       description="Zope Object Database: object database and persistence",
-      maintainer="Zope Corp.",
+      maintainer="Zope Corporation",
       maintainer_email="zodb-dev@zope.org",
       url = "http://www.zope.org/Wikis/ZODB/FrontPage",
-
       packages = packages,
       package_dir = package_dir,
-      ext_modules = [ExtensionClass, Acquisition, ComputedAttribute,
-                     MethodObject, Missing, MultiMapping, Sync,
-                     ThreadLock, Record, cPersistence, cPickleCache,
-                     TimeStamp, coptimizations, winlock, oob, oib,
-                     iib, iob, fsb,
-                     ],
+      ext_modules = ext_modules,
       headers = ['ExtensionClass/src/ExtensionClass.h', 'ZODB/cPersistence.h'],
-      
       )