[Zodb-checkins] CVS: StandaloneZODB - setup.py:1.17
Barry Warsaw
barry@wooz.org
Fri, 23 Aug 2002 13:21:45 -0400
Update of /cvs-repository/StandaloneZODB
In directory cvs.zope.org:/tmp/cvs-serv2373
Modified Files:
setup.py
Log Message:
Rename the package ZODB instead of StandaloneZODB. Also, don't build
the Berkeley _helper extension module if we're using Python < 2.2.
=== StandaloneZODB/setup.py 1.16 => 1.17 ===
--- StandaloneZODB/setup.py:1.16 Thu Jul 18 12:28:58 2002
+++ StandaloneZODB/setup.py Fri Aug 23 13:21:44 2002
@@ -1,3 +1,18 @@
+##############################################################################
+#
+# Copyright (c) 2001, 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
@@ -82,6 +97,9 @@
define_macros = [('EXCLUDE_INTSET_SUPPORT', None)],
)
+bsddbhelper = Extension(name = 'bsddb3Storage._helper',
+ sources = ['bsddb3Storage/bsddb3Storage/_helper.c'])
+
packages = ['BTrees', 'BTrees.tests',
'ZEO', 'ZEO.zrpc', 'ZEO.tests',
'ZODB', 'ZODB.tests',
@@ -106,21 +124,29 @@
else:
packages.extend(["bsddb3Storage", "bsddb3Storage.tests"])
-setup(name="StandaloneZODB",
+ext_modules = [ExtensionClass, Acquisition, ComputedAttribute,
+ MethodObject, Missing, MultiMapping, Sync,
+ ThreadLock, Record, cPersistence, cPickleCache,
+ TimeStamp, coptimizations, winlock, oob, oib,
+ iib, iob, fsb,
+ ]
+
+
+# Don't build this unless using at least Python 2.2
+if sys.hexversion >= 0x020200F0:
+ ext_modules.append(bsddbhelper)
+
+
+setup(name="ZODB",
version="3.0",
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",
package_dir = {'bsddb3Storage': 'bsddb3Storage/bsddb3Storage'},
packages = packages,
- 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'],
-
+
)